0.1.38 gateway
This commit is contained in:
@@ -651,6 +651,18 @@ each page read as a pile of unrelated controls. Things to preserve:
|
|||||||
menu and 404, or be reachable and unnamed. Adding one is an entry there plus
|
menu and 404, or be reachable and unnamed. Adding one is an entry there plus
|
||||||
`admin/pages/<id>.html` and `<id>.js`; a fragment with no entry panics at start-up rather
|
`admin/pages/<id>.html` and `<id>.js`; a fragment with no entry panics at start-up rather
|
||||||
than sitting there looking maintained.
|
than sitting there looking maintained.
|
||||||
|
- **The console is addressable by name as well as by menu.** Twenty-odd pages is more than a
|
||||||
|
rail six groups deep is read down, so the top bar carries a search field (Shift+S, and the
|
||||||
|
shortcut is *printed* on it — it is the only thing saying the console can be driven from
|
||||||
|
the keyboard). Its list is server-rendered from `.Nav` in `shell.html`, so it reads from
|
||||||
|
`adminNav` like everything else and cannot offer a page that does not exist or miss one
|
||||||
|
that does. Two rules in `prepareSearch`: a page's own **name outranks the sentence under
|
||||||
|
it**, or typing "se" answers with every page whose intro happens to contain those letters
|
||||||
|
and buries Searches, with ties keeping the rail's order so equally good matches never
|
||||||
|
reshuffle; and what the arrows walk is read **out of the DOM**, not out of the array the
|
||||||
|
markup was built from, because ranking re-orders the list and the two disagree the moment
|
||||||
|
it does. The shortcut stands down inside a field — the console is full of them, and one
|
||||||
|
that ate a capital S would be worse than none.
|
||||||
- **Hidden pages are addressed by a route that carries something else in the path.**
|
- **Hidden pages are addressed by a route that carries something else in the path.**
|
||||||
`/admin/accounts/{userID}` renders the `account` fragment; `/admin/account` is a 404 and
|
`/admin/accounts/{userID}` renders the `account` fragment; `/admin/account` is a 404 and
|
||||||
`cleanInstallerDestination` refuses it, because a sign-in returning there would land on a
|
`cleanInstallerDestination` refuses it, because a sign-in returning there would land on a
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
# The Dockerfile copies only the manifest and source files it needs. Keeping these
|
||||||
|
# out of the build context avoids sending a local development install or stale bundle
|
||||||
|
# to the daemon before Node creates its clean, reproducible build-stage install.
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
|
# The Memby operations console.
|
||||||
|
#
|
||||||
|
# Two stages: Node builds the static bundle, nginx serves it. Nothing from Node survives
|
||||||
|
# into the running image — the console is a directory of files, and the container's only
|
||||||
|
# job is to hand them over on the compose network. It is never published: the gateway
|
||||||
|
# reverse-proxies /admin to it, so the console shares the gateway's origin, cookie and
|
||||||
|
# single ingress.
|
||||||
|
|
||||||
|
FROM node:22-alpine AS build
|
||||||
|
WORKDIR /ui
|
||||||
|
|
||||||
|
# Dependencies first so an edit to the source does not re-resolve the whole tree.
|
||||||
|
COPY package.json package-lock.json* ./
|
||||||
|
# `npm ci` when there is a lockfile — reproducible, and the only reason a lockfile is
|
||||||
|
# checked in — falling back to `npm install` so a first build works without one.
|
||||||
|
RUN if [ -f package-lock.json ]; then npm ci; else npm install; fi
|
||||||
|
|
||||||
|
COPY tsconfig.json vite.config.ts index.html ./
|
||||||
|
COPY src ./src
|
||||||
|
# The type check is part of the build rather than a separate step: a console that compiles
|
||||||
|
# to JavaScript but reads a field the gateway does not send is exactly the failure the
|
||||||
|
# hand-written wire types exist to catch, and it must not reach a deployment.
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM nginx:1.27-alpine
|
||||||
|
# Read-only, non-root and no default site: the image serves one directory and does nothing
|
||||||
|
# else. nginx's own temp paths are the only writable thing it needs, and they are declared
|
||||||
|
# as tmpfs in docker-compose.yml.
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
COPY --from=build /ui/dist /usr/share/nginx/html
|
||||||
|
EXPOSE 80
|
||||||
+1
File diff suppressed because one or more lines are too long
+11
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+59
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
|||||||
|
import"./router-BwjLFE7Y.js";
|
||||||
Vendored
+22
@@ -0,0 +1,22 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en-NZ">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<!-- The console is behind an admin token and is nobody's search result. -->
|
||||||
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
|
<meta name="color-scheme" content="dark" />
|
||||||
|
<title>Memby admin</title>
|
||||||
|
<!-- An SVG favicon, inline, because the console must fetch nothing from anywhere. -->
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%2352b54b'/%3E%3Ctext x='16' y='23' font-family='system-ui,sans-serif' font-size='19' font-weight='800' text-anchor='middle' fill='%2306240a'%3EM%3C/text%3E%3C/svg%3E"
|
||||||
|
/>
|
||||||
|
<script type="module" crossorigin src="/admin/assets/index-BQ_ZF8Re.js"></script>
|
||||||
|
<link rel="modulepreload" crossorigin href="/admin/assets/router-BwjLFE7Y.js">
|
||||||
|
<link rel="stylesheet" crossorigin href="/admin/assets/index-BIKdFbmA.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en-NZ">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<!-- The console is behind an admin token and is nobody's search result. -->
|
||||||
|
<meta name="robots" content="noindex, nofollow" />
|
||||||
|
<meta name="color-scheme" content="dark" />
|
||||||
|
<title>Memby admin</title>
|
||||||
|
<!-- An SVG favicon, inline, because the console must fetch nothing from anywhere. -->
|
||||||
|
<link
|
||||||
|
rel="icon"
|
||||||
|
href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%2352b54b'/%3E%3Ctext x='16' y='23' font-family='system-ui,sans-serif' font-size='19' font-weight='800' text-anchor='middle' fill='%2306240a'%3EM%3C/text%3E%3C/svg%3E"
|
||||||
|
/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/src/main.tsx"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
# The console's own server. It sees only requests the gateway has already authenticated
|
||||||
|
# and forwarded, so there is no auth here — and there must not be, or there would be two
|
||||||
|
# places deciding who may read the console.
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name _;
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
|
||||||
|
# The gateway proxies /admin/* through untouched, so the paths arriving here carry that
|
||||||
|
# prefix. Vite is built with base=/admin/, so the asset URLs in index.html match.
|
||||||
|
location /admin/assets/ {
|
||||||
|
alias /usr/share/nginx/html/assets/;
|
||||||
|
# Hashed filenames: a changed file is a changed name, so this can be cached hard
|
||||||
|
# and a deployment is picked up the moment the shell is re-fetched.
|
||||||
|
expires 1y;
|
||||||
|
add_header Cache-Control "public, immutable";
|
||||||
|
access_log off;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Canonicalise the console root even though the gateway normally performs this
|
||||||
|
# redirect before proxying. It keeps the static container correct if it is ever
|
||||||
|
# reached directly during diagnosis or through a future internal proxy change.
|
||||||
|
location = /admin {
|
||||||
|
return 308 /admin/;
|
||||||
|
}
|
||||||
|
|
||||||
|
# Every other /admin path is a console route — /admin/logins, /admin/devices/tv-1, a
|
||||||
|
# deep link, a refresh, the Back button — and none of them exist as files. They all
|
||||||
|
# answer with the shell, which is what makes client-side routing work on a reload.
|
||||||
|
location /admin {
|
||||||
|
try_files $uri @console_shell;
|
||||||
|
# The shell must never be cached: it carries the asset hashes, so a stale copy
|
||||||
|
# points at JavaScript a deployment has already replaced. The gateway sets this too
|
||||||
|
# on the way past; it is stated in both places because either alone would be enough
|
||||||
|
# to get wrong.
|
||||||
|
add_header Cache-Control "no-store" always;
|
||||||
|
}
|
||||||
|
|
||||||
|
# `try_files ... /index.html` would internally re-match the fallback against the
|
||||||
|
# catch-all `location /` below, which deliberately returns 404. A named location
|
||||||
|
# retains this server's static root and serves the shell without exposing /index.html
|
||||||
|
# as a second public route.
|
||||||
|
location @console_shell {
|
||||||
|
try_files /index.html =404;
|
||||||
|
add_header Cache-Control "no-store" always;
|
||||||
|
}
|
||||||
|
|
||||||
|
# A liveness probe for docker-compose. Deliberately outside /admin so it cannot be
|
||||||
|
# confused with a console route, and it answers without touching the filesystem.
|
||||||
|
location = /healthz {
|
||||||
|
access_log off;
|
||||||
|
default_type text/plain;
|
||||||
|
return 200 "ok\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
# Nothing else is served. The console is the only thing in this image.
|
||||||
|
location / {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
|
# The console fetches nothing from anywhere: no CDN, no fonts, no analytics. Saying so
|
||||||
|
# in a policy means a dependency that tried to would fail loudly during development
|
||||||
|
# rather than quietly phone home from an operator's browser.
|
||||||
|
#
|
||||||
|
# 'unsafe-inline' for styles is Vite's injected critical CSS; connect-src 'self' covers
|
||||||
|
# the API and the notification stream, both of which are same-origin by construction.
|
||||||
|
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self'; frame-ancestors 'none'; base-uri 'none'; form-action 'self'" always;
|
||||||
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
|
add_header Referrer-Policy "no-referrer" always;
|
||||||
|
|
||||||
|
gzip on;
|
||||||
|
gzip_types text/css application/javascript application/json image/svg+xml;
|
||||||
|
gzip_min_length 1024;
|
||||||
|
}
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../baseline-browser-mapping/dist/cli.cjs" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../baseline-browser-mapping/dist/cli.cjs" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\baseline-browser-mapping\dist\cli.cjs" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../baseline-browser-mapping/dist/cli.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../baseline-browser-mapping/dist/cli.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../baseline-browser-mapping/dist/cli.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../baseline-browser-mapping/dist/cli.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../browserslist/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../browserslist/cli.js" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\browserslist\cli.js" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../browserslist/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../browserslist/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../browserslist/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../browserslist/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../esbuild/bin/esbuild" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../esbuild/bin/esbuild" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\esbuild\bin\esbuild" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../esbuild/bin/esbuild" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../jsesc/bin/jsesc" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../jsesc/bin/jsesc" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\jsesc\bin\jsesc" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../jsesc/bin/jsesc" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../json5/lib/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../json5/lib/cli.js" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\json5\lib\cli.js" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../json5/lib/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../loose-envify/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../loose-envify/cli.js" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\loose-envify\cli.js" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../loose-envify/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../nanoid/bin/nanoid.cjs" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../nanoid/bin/nanoid.cjs" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\nanoid\bin\nanoid.cjs" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../nanoid/bin/nanoid.cjs" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\@babel\parser\bin\babel-parser.js" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../rollup/dist/bin/rollup" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../rollup/dist/bin/rollup" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rollup\dist\bin\rollup" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../rollup/dist/bin/rollup" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../semver/bin/semver.js" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\semver\bin\semver.js" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../semver/bin/semver.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../typescript/bin/tsc" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\typescript\bin\tsc" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../typescript/bin/tsc" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../typescript/bin/tsc" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../typescript/bin/tsc" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../typescript/bin/tsc" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\typescript\bin\tsserver" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../typescript/bin/tsserver" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../typescript/bin/tsserver" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../typescript/bin/tsserver" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../typescript/bin/tsserver" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../update-browserslist-db/cli.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../update-browserslist-db/cli.js" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\update-browserslist-db\cli.js" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../update-browserslist-db/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../update-browserslist-db/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../update-browserslist-db/cli.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../update-browserslist-db/cli.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+16
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||||
|
|
||||||
|
case `uname` in
|
||||||
|
*CYGWIN*|*MINGW*|*MSYS*)
|
||||||
|
if command -v cygpath > /dev/null 2>&1; then
|
||||||
|
basedir=`cygpath -w "$basedir"`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [ -x "$basedir/node" ]; then
|
||||||
|
exec "$basedir/node" "$basedir/../vite/bin/vite.js" "$@"
|
||||||
|
else
|
||||||
|
exec node "$basedir/../vite/bin/vite.js" "$@"
|
||||||
|
fi
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
@ECHO off
|
||||||
|
GOTO start
|
||||||
|
:find_dp0
|
||||||
|
SET dp0=%~dp0
|
||||||
|
EXIT /b
|
||||||
|
:start
|
||||||
|
SETLOCAL
|
||||||
|
CALL :find_dp0
|
||||||
|
|
||||||
|
IF EXIST "%dp0%\node.exe" (
|
||||||
|
SET "_prog=%dp0%\node.exe"
|
||||||
|
) ELSE (
|
||||||
|
SET "_prog=node"
|
||||||
|
SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||||
|
)
|
||||||
|
|
||||||
|
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\vite\bin\vite.js" %*
|
||||||
+28
@@ -0,0 +1,28 @@
|
|||||||
|
#!/usr/bin/env pwsh
|
||||||
|
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
|
||||||
|
|
||||||
|
$exe=""
|
||||||
|
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
|
||||||
|
# Fix case when both the Windows and Linux builds of Node
|
||||||
|
# are installed in the same directory
|
||||||
|
$exe=".exe"
|
||||||
|
}
|
||||||
|
$ret=0
|
||||||
|
if (Test-Path "$basedir/node$exe") {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
} else {
|
||||||
|
& "$basedir/node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
} else {
|
||||||
|
# Support pipeline input
|
||||||
|
if ($MyInvocation.ExpectingInput) {
|
||||||
|
$input | & "node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
} else {
|
||||||
|
& "node$exe" "$basedir/../vite/bin/vite.js" $args
|
||||||
|
}
|
||||||
|
$ret=$LASTEXITCODE
|
||||||
|
}
|
||||||
|
exit $ret
|
||||||
+1074
File diff suppressed because it is too large
Load Diff
+52
@@ -0,0 +1,52 @@
|
|||||||
|
{
|
||||||
|
"hash": "17a70f33",
|
||||||
|
"configHash": "c7ca9ffe",
|
||||||
|
"lockfileHash": "a6f93a7b",
|
||||||
|
"browserHash": "6d507b63",
|
||||||
|
"optimized": {
|
||||||
|
"react": {
|
||||||
|
"src": "../../react/index.js",
|
||||||
|
"file": "react.js",
|
||||||
|
"fileHash": "56770867",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-dom": {
|
||||||
|
"src": "../../react-dom/index.js",
|
||||||
|
"file": "react-dom.js",
|
||||||
|
"fileHash": "0b1b4c9c",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react/jsx-dev-runtime": {
|
||||||
|
"src": "../../react/jsx-dev-runtime.js",
|
||||||
|
"file": "react_jsx-dev-runtime.js",
|
||||||
|
"fileHash": "a8719056",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react/jsx-runtime": {
|
||||||
|
"src": "../../react/jsx-runtime.js",
|
||||||
|
"file": "react_jsx-runtime.js",
|
||||||
|
"fileHash": "fd553aab",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-dom/client": {
|
||||||
|
"src": "../../react-dom/client.js",
|
||||||
|
"file": "react-dom_client.js",
|
||||||
|
"fileHash": "b13eee38",
|
||||||
|
"needsInterop": true
|
||||||
|
},
|
||||||
|
"react-router-dom": {
|
||||||
|
"src": "../../react-router-dom/dist/index.js",
|
||||||
|
"file": "react-router-dom.js",
|
||||||
|
"fileHash": "0f9ff289",
|
||||||
|
"needsInterop": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chunks": {
|
||||||
|
"chunk-XPR23Y44": {
|
||||||
|
"file": "chunk-XPR23Y44.js"
|
||||||
|
},
|
||||||
|
"chunk-I4MZPW7S": {
|
||||||
|
"file": "chunk-I4MZPW7S.js"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+1930
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+21626
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+3
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"type": "module"
|
||||||
|
}
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
import {
|
||||||
|
require_react_dom
|
||||||
|
} from "./chunk-XPR23Y44.js";
|
||||||
|
import "./chunk-I4MZPW7S.js";
|
||||||
|
export default require_react_dom();
|
||||||
|
//# sourceMappingURL=react-dom.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+38
@@ -0,0 +1,38 @@
|
|||||||
|
import {
|
||||||
|
require_react_dom
|
||||||
|
} from "./chunk-XPR23Y44.js";
|
||||||
|
import {
|
||||||
|
__commonJS
|
||||||
|
} from "./chunk-I4MZPW7S.js";
|
||||||
|
|
||||||
|
// node_modules/react-dom/client.js
|
||||||
|
var require_client = __commonJS({
|
||||||
|
"node_modules/react-dom/client.js"(exports) {
|
||||||
|
var m = require_react_dom();
|
||||||
|
if (false) {
|
||||||
|
exports.createRoot = m.createRoot;
|
||||||
|
exports.hydrateRoot = m.hydrateRoot;
|
||||||
|
} else {
|
||||||
|
i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
exports.createRoot = function(c, o) {
|
||||||
|
i.usingClientEntryPoint = true;
|
||||||
|
try {
|
||||||
|
return m.createRoot(c, o);
|
||||||
|
} finally {
|
||||||
|
i.usingClientEntryPoint = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
exports.hydrateRoot = function(c, h, o) {
|
||||||
|
i.usingClientEntryPoint = true;
|
||||||
|
try {
|
||||||
|
return m.hydrateRoot(c, h, o);
|
||||||
|
} finally {
|
||||||
|
i.usingClientEntryPoint = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var i;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_client();
|
||||||
|
//# sourceMappingURL=react-dom_client.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": ["../../react-dom/client.js"],
|
||||||
|
"sourcesContent": ["'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n"],
|
||||||
|
"mappings": ";;;;;;;;AAAA;AAAA;AAEA,QAAI,IAAI;AACR,QAAI,OAAuC;AACzC,cAAQ,aAAa,EAAE;AACvB,cAAQ,cAAc,EAAE;AAAA,IAC1B,OAAO;AACD,UAAI,EAAE;AACV,cAAQ,aAAa,SAAS,GAAG,GAAG;AAClC,UAAE,wBAAwB;AAC1B,YAAI;AACF,iBAAO,EAAE,WAAW,GAAG,CAAC;AAAA,QAC1B,UAAE;AACA,YAAE,wBAAwB;AAAA,QAC5B;AAAA,MACF;AACA,cAAQ,cAAc,SAAS,GAAG,GAAG,GAAG;AACtC,UAAE,wBAAwB;AAC1B,YAAI;AACF,iBAAO,EAAE,YAAY,GAAG,GAAG,CAAC;AAAA,QAC9B,UAAE;AACA,YAAE,wBAAwB;AAAA,QAC5B;AAAA,MACF;AAAA,IACF;AAjBM;AAAA;AAAA;",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+6059
File diff suppressed because it is too large
Load Diff
+7
File diff suppressed because one or more lines are too long
+5
@@ -0,0 +1,5 @@
|
|||||||
|
import {
|
||||||
|
require_react
|
||||||
|
} from "./chunk-I4MZPW7S.js";
|
||||||
|
export default require_react();
|
||||||
|
//# sourceMappingURL=react.js.map
|
||||||
+7
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"version": 3,
|
||||||
|
"sources": [],
|
||||||
|
"sourcesContent": [],
|
||||||
|
"mappings": "",
|
||||||
|
"names": []
|
||||||
|
}
|
||||||
+911
@@ -0,0 +1,911 @@
|
|||||||
|
import {
|
||||||
|
__commonJS,
|
||||||
|
require_react
|
||||||
|
} from "./chunk-I4MZPW7S.js";
|
||||||
|
|
||||||
|
// node_modules/react/cjs/react-jsx-dev-runtime.development.js
|
||||||
|
var require_react_jsx_dev_runtime_development = __commonJS({
|
||||||
|
"node_modules/react/cjs/react-jsx-dev-runtime.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var React = require_react();
|
||||||
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
||||||
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
||||||
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||||
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
||||||
|
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||||
|
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||||
|
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||||
|
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||||
|
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||||
|
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
||||||
|
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
||||||
|
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
||||||
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||||
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||||
|
function getIteratorFn(maybeIterable) {
|
||||||
|
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
||||||
|
if (typeof maybeIterator === "function") {
|
||||||
|
return maybeIterator;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
function error(format) {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||||
|
args[_key2 - 1] = arguments[_key2];
|
||||||
|
}
|
||||||
|
printWarning("error", format, args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function printWarning(level, format, args) {
|
||||||
|
{
|
||||||
|
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
||||||
|
if (stack !== "") {
|
||||||
|
format += "%s";
|
||||||
|
args = args.concat([stack]);
|
||||||
|
}
|
||||||
|
var argsWithFormat = args.map(function(item) {
|
||||||
|
return String(item);
|
||||||
|
});
|
||||||
|
argsWithFormat.unshift("Warning: " + format);
|
||||||
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var enableScopeAPI = false;
|
||||||
|
var enableCacheElement = false;
|
||||||
|
var enableTransitionTracing = false;
|
||||||
|
var enableLegacyHidden = false;
|
||||||
|
var enableDebugTracing = false;
|
||||||
|
var REACT_MODULE_REFERENCE;
|
||||||
|
{
|
||||||
|
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
||||||
|
}
|
||||||
|
function isValidElementType(type) {
|
||||||
|
if (typeof type === "string" || typeof type === "function") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (typeof type === "object" && type !== null) {
|
||||||
|
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
||||||
|
// types supported by any Flight configuration anywhere since
|
||||||
|
// we don't know which Flight build this will end up being used
|
||||||
|
// with.
|
||||||
|
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function getWrappedName(outerType, innerType, wrapperName) {
|
||||||
|
var displayName = outerType.displayName;
|
||||||
|
if (displayName) {
|
||||||
|
return displayName;
|
||||||
|
}
|
||||||
|
var functionName = innerType.displayName || innerType.name || "";
|
||||||
|
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
||||||
|
}
|
||||||
|
function getContextName(type) {
|
||||||
|
return type.displayName || "Context";
|
||||||
|
}
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (type == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof type.tag === "number") {
|
||||||
|
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
return type.displayName || type.name || null;
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
var context = type;
|
||||||
|
return getContextName(context) + ".Consumer";
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
var provider = type;
|
||||||
|
return getContextName(provider._context) + ".Provider";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return getWrappedName(type, type.render, "ForwardRef");
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
var outerName = type.displayName || null;
|
||||||
|
if (outerName !== null) {
|
||||||
|
return outerName;
|
||||||
|
}
|
||||||
|
return getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(init(payload));
|
||||||
|
} catch (x) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var assign = Object.assign;
|
||||||
|
var disabledDepth = 0;
|
||||||
|
var prevLog;
|
||||||
|
var prevInfo;
|
||||||
|
var prevWarn;
|
||||||
|
var prevError;
|
||||||
|
var prevGroup;
|
||||||
|
var prevGroupCollapsed;
|
||||||
|
var prevGroupEnd;
|
||||||
|
function disabledLog() {
|
||||||
|
}
|
||||||
|
disabledLog.__reactDisabledLog = true;
|
||||||
|
function disableLogs() {
|
||||||
|
{
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
prevLog = console.log;
|
||||||
|
prevInfo = console.info;
|
||||||
|
prevWarn = console.warn;
|
||||||
|
prevError = console.error;
|
||||||
|
prevGroup = console.group;
|
||||||
|
prevGroupCollapsed = console.groupCollapsed;
|
||||||
|
prevGroupEnd = console.groupEnd;
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
value: disabledLog,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
info: props,
|
||||||
|
log: props,
|
||||||
|
warn: props,
|
||||||
|
error: props,
|
||||||
|
group: props,
|
||||||
|
groupCollapsed: props,
|
||||||
|
groupEnd: props
|
||||||
|
});
|
||||||
|
}
|
||||||
|
disabledDepth++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function reenableLogs() {
|
||||||
|
{
|
||||||
|
disabledDepth--;
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
log: assign({}, props, {
|
||||||
|
value: prevLog
|
||||||
|
}),
|
||||||
|
info: assign({}, props, {
|
||||||
|
value: prevInfo
|
||||||
|
}),
|
||||||
|
warn: assign({}, props, {
|
||||||
|
value: prevWarn
|
||||||
|
}),
|
||||||
|
error: assign({}, props, {
|
||||||
|
value: prevError
|
||||||
|
}),
|
||||||
|
group: assign({}, props, {
|
||||||
|
value: prevGroup
|
||||||
|
}),
|
||||||
|
groupCollapsed: assign({}, props, {
|
||||||
|
value: prevGroupCollapsed
|
||||||
|
}),
|
||||||
|
groupEnd: assign({}, props, {
|
||||||
|
value: prevGroupEnd
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (disabledDepth < 0) {
|
||||||
|
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
||||||
|
var prefix;
|
||||||
|
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
||||||
|
{
|
||||||
|
if (prefix === void 0) {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
||||||
|
prefix = match && match[1] || "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "\n" + prefix + name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var reentry = false;
|
||||||
|
var componentFrameCache;
|
||||||
|
{
|
||||||
|
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
||||||
|
componentFrameCache = new PossiblyWeakMap();
|
||||||
|
}
|
||||||
|
function describeNativeComponentFrame(fn, construct) {
|
||||||
|
if (!fn || reentry) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
var frame = componentFrameCache.get(fn);
|
||||||
|
if (frame !== void 0) {
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var control;
|
||||||
|
reentry = true;
|
||||||
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
||||||
|
Error.prepareStackTrace = void 0;
|
||||||
|
var previousDispatcher;
|
||||||
|
{
|
||||||
|
previousDispatcher = ReactCurrentDispatcher.current;
|
||||||
|
ReactCurrentDispatcher.current = null;
|
||||||
|
disableLogs();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (construct) {
|
||||||
|
var Fake = function() {
|
||||||
|
throw Error();
|
||||||
|
};
|
||||||
|
Object.defineProperty(Fake.prototype, "props", {
|
||||||
|
set: function() {
|
||||||
|
throw Error();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (typeof Reflect === "object" && Reflect.construct) {
|
||||||
|
try {
|
||||||
|
Reflect.construct(Fake, []);
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
Reflect.construct(fn, [], Fake);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
Fake.call();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn.call(Fake.prototype);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn();
|
||||||
|
}
|
||||||
|
} catch (sample) {
|
||||||
|
if (sample && control && typeof sample.stack === "string") {
|
||||||
|
var sampleLines = sample.stack.split("\n");
|
||||||
|
var controlLines = control.stack.split("\n");
|
||||||
|
var s = sampleLines.length - 1;
|
||||||
|
var c = controlLines.length - 1;
|
||||||
|
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
||||||
|
c--;
|
||||||
|
}
|
||||||
|
for (; s >= 1 && c >= 0; s--, c--) {
|
||||||
|
if (sampleLines[s] !== controlLines[c]) {
|
||||||
|
if (s !== 1 || c !== 1) {
|
||||||
|
do {
|
||||||
|
s--;
|
||||||
|
c--;
|
||||||
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
||||||
|
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
||||||
|
if (fn.displayName && _frame.includes("<anonymous>")) {
|
||||||
|
_frame = _frame.replace("<anonymous>", fn.displayName);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, _frame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _frame;
|
||||||
|
}
|
||||||
|
} while (s >= 1 && c >= 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
reentry = false;
|
||||||
|
{
|
||||||
|
ReactCurrentDispatcher.current = previousDispatcher;
|
||||||
|
reenableLogs();
|
||||||
|
}
|
||||||
|
Error.prepareStackTrace = previousPrepareStackTrace;
|
||||||
|
}
|
||||||
|
var name = fn ? fn.displayName || fn.name : "";
|
||||||
|
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, syntheticFrame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return syntheticFrame;
|
||||||
|
}
|
||||||
|
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(fn, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function shouldConstruct(Component) {
|
||||||
|
var prototype = Component.prototype;
|
||||||
|
return !!(prototype && prototype.isReactComponent);
|
||||||
|
}
|
||||||
|
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
||||||
|
if (type == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(type, shouldConstruct(type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return describeBuiltInComponentFrame(type);
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("Suspense");
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("SuspenseList");
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return describeFunctionComponentFrame(type.render);
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||||
|
var loggedTypeFailures = {};
|
||||||
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
||||||
|
{
|
||||||
|
var has = Function.call.bind(hasOwnProperty);
|
||||||
|
for (var typeSpecName in typeSpecs) {
|
||||||
|
if (has(typeSpecs, typeSpecName)) {
|
||||||
|
var error$1 = void 0;
|
||||||
|
try {
|
||||||
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
||||||
|
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
||||||
|
err.name = "Invariant Violation";
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
||||||
|
} catch (ex) {
|
||||||
|
error$1 = ex;
|
||||||
|
}
|
||||||
|
if (error$1 && !(error$1 instanceof Error)) {
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
||||||
|
loggedTypeFailures[error$1.message] = true;
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("Failed %s type: %s", location, error$1.message);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var isArrayImpl = Array.isArray;
|
||||||
|
function isArray(a) {
|
||||||
|
return isArrayImpl(a);
|
||||||
|
}
|
||||||
|
function typeName(value) {
|
||||||
|
{
|
||||||
|
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
||||||
|
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function willCoercionThrow(value) {
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
return false;
|
||||||
|
} catch (e) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
{
|
||||||
|
if (willCoercionThrow(value)) {
|
||||||
|
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var RESERVED_PROPS = {
|
||||||
|
key: true,
|
||||||
|
ref: true,
|
||||||
|
__self: true,
|
||||||
|
__source: true
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown;
|
||||||
|
var specialPropRefWarningShown;
|
||||||
|
var didWarnAboutStringRefs;
|
||||||
|
{
|
||||||
|
didWarnAboutStringRefs = {};
|
||||||
|
}
|
||||||
|
function hasValidRef(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "ref")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.ref !== void 0;
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.key !== void 0;
|
||||||
|
}
|
||||||
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||||
|
{
|
||||||
|
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
||||||
|
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
||||||
|
if (!didWarnAboutStringRefs[componentName]) {
|
||||||
|
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
||||||
|
didWarnAboutStringRefs[componentName] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingKey = function() {
|
||||||
|
if (!specialPropKeyWarningShown) {
|
||||||
|
specialPropKeyWarningShown = true;
|
||||||
|
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineRefPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingRef = function() {
|
||||||
|
if (!specialPropRefWarningShown) {
|
||||||
|
specialPropRefWarningShown = true;
|
||||||
|
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingRef.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "ref", {
|
||||||
|
get: warnAboutAccessingRef,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
||||||
|
var element = {
|
||||||
|
// This tag allows us to uniquely identify this as a React Element
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
// Built-in properties that belong on the element
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
ref,
|
||||||
|
props,
|
||||||
|
// Record the component responsible for creating this element.
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
{
|
||||||
|
element._store = {};
|
||||||
|
Object.defineProperty(element._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: false
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_self", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: self
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_source", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: source
|
||||||
|
});
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(element.props);
|
||||||
|
Object.freeze(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
};
|
||||||
|
function jsxDEV(type, config, maybeKey, source, self) {
|
||||||
|
{
|
||||||
|
var propName;
|
||||||
|
var props = {};
|
||||||
|
var key = null;
|
||||||
|
var ref = null;
|
||||||
|
if (maybeKey !== void 0) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(maybeKey);
|
||||||
|
}
|
||||||
|
key = "" + maybeKey;
|
||||||
|
}
|
||||||
|
if (hasValidKey(config)) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(config.key);
|
||||||
|
}
|
||||||
|
key = "" + config.key;
|
||||||
|
}
|
||||||
|
if (hasValidRef(config)) {
|
||||||
|
ref = config.ref;
|
||||||
|
warnIfStringRefCannotBeAutoConverted(config, self);
|
||||||
|
}
|
||||||
|
for (propName in config) {
|
||||||
|
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
||||||
|
props[propName] = config[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type && type.defaultProps) {
|
||||||
|
var defaultProps = type.defaultProps;
|
||||||
|
for (propName in defaultProps) {
|
||||||
|
if (props[propName] === void 0) {
|
||||||
|
props[propName] = defaultProps[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (key || ref) {
|
||||||
|
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
||||||
|
if (key) {
|
||||||
|
defineKeyPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
if (ref) {
|
||||||
|
defineRefPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement$1(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var propTypesMisspellWarningShown;
|
||||||
|
{
|
||||||
|
propTypesMisspellWarningShown = false;
|
||||||
|
}
|
||||||
|
function isValidElement(object) {
|
||||||
|
{
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getDeclarationErrorAddendum() {
|
||||||
|
{
|
||||||
|
if (ReactCurrentOwner$1.current) {
|
||||||
|
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
||||||
|
if (name) {
|
||||||
|
return "\n\nCheck the render method of `" + name + "`.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getSourceInfoErrorAddendum(source) {
|
||||||
|
{
|
||||||
|
if (source !== void 0) {
|
||||||
|
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
||||||
|
var lineNumber = source.lineNumber;
|
||||||
|
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ownerHasKeyUseWarning = {};
|
||||||
|
function getCurrentComponentErrorInfo(parentType) {
|
||||||
|
{
|
||||||
|
var info = getDeclarationErrorAddendum();
|
||||||
|
if (!info) {
|
||||||
|
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
||||||
|
if (parentName) {
|
||||||
|
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateExplicitKey(element, parentType) {
|
||||||
|
{
|
||||||
|
if (!element._store || element._store.validated || element.key != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
element._store.validated = true;
|
||||||
|
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
||||||
|
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
||||||
|
var childOwner = "";
|
||||||
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
||||||
|
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
||||||
|
}
|
||||||
|
setCurrentlyValidatingElement$1(element);
|
||||||
|
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateChildKeys(node, parentType) {
|
||||||
|
{
|
||||||
|
if (typeof node !== "object") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isArray(node)) {
|
||||||
|
for (var i = 0; i < node.length; i++) {
|
||||||
|
var child = node[i];
|
||||||
|
if (isValidElement(child)) {
|
||||||
|
validateExplicitKey(child, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (isValidElement(node)) {
|
||||||
|
if (node._store) {
|
||||||
|
node._store.validated = true;
|
||||||
|
}
|
||||||
|
} else if (node) {
|
||||||
|
var iteratorFn = getIteratorFn(node);
|
||||||
|
if (typeof iteratorFn === "function") {
|
||||||
|
if (iteratorFn !== node.entries) {
|
||||||
|
var iterator = iteratorFn.call(node);
|
||||||
|
var step;
|
||||||
|
while (!(step = iterator.next()).done) {
|
||||||
|
if (isValidElement(step.value)) {
|
||||||
|
validateExplicitKey(step.value, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validatePropTypes(element) {
|
||||||
|
{
|
||||||
|
var type = element.type;
|
||||||
|
if (type === null || type === void 0 || typeof type === "string") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var propTypes;
|
||||||
|
if (typeof type === "function") {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
||||||
|
// Inner props are checked in the reconciler.
|
||||||
|
type.$$typeof === REACT_MEMO_TYPE)) {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (propTypes) {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
checkPropTypes(propTypes, element.props, "prop", name, element);
|
||||||
|
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
||||||
|
propTypesMisspellWarningShown = true;
|
||||||
|
var _name = getComponentNameFromType(type);
|
||||||
|
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
||||||
|
}
|
||||||
|
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
||||||
|
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateFragmentProps(fragment) {
|
||||||
|
{
|
||||||
|
var keys = Object.keys(fragment.props);
|
||||||
|
for (var i = 0; i < keys.length; i++) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (key !== "children" && key !== "key") {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (fragment.ref !== null) {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var didWarnAboutKeySpread = {};
|
||||||
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
||||||
|
{
|
||||||
|
var validType = isValidElementType(type);
|
||||||
|
if (!validType) {
|
||||||
|
var info = "";
|
||||||
|
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
||||||
|
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
||||||
|
}
|
||||||
|
var sourceInfo = getSourceInfoErrorAddendum(source);
|
||||||
|
if (sourceInfo) {
|
||||||
|
info += sourceInfo;
|
||||||
|
} else {
|
||||||
|
info += getDeclarationErrorAddendum();
|
||||||
|
}
|
||||||
|
var typeString;
|
||||||
|
if (type === null) {
|
||||||
|
typeString = "null";
|
||||||
|
} else if (isArray(type)) {
|
||||||
|
typeString = "array";
|
||||||
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
||||||
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
||||||
|
info = " Did you accidentally export a JSX literal instead of a component?";
|
||||||
|
} else {
|
||||||
|
typeString = typeof type;
|
||||||
|
}
|
||||||
|
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
||||||
|
}
|
||||||
|
var element = jsxDEV(type, props, key, source, self);
|
||||||
|
if (element == null) {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
if (validType) {
|
||||||
|
var children = props.children;
|
||||||
|
if (children !== void 0) {
|
||||||
|
if (isStaticChildren) {
|
||||||
|
if (isArray(children)) {
|
||||||
|
for (var i = 0; i < children.length; i++) {
|
||||||
|
validateChildKeys(children[i], type);
|
||||||
|
}
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(children);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
validateChildKeys(children, type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(props, "key")) {
|
||||||
|
var componentName = getComponentNameFromType(type);
|
||||||
|
var keys = Object.keys(props).filter(function(k) {
|
||||||
|
return k !== "key";
|
||||||
|
});
|
||||||
|
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||||
|
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
||||||
|
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
||||||
|
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
||||||
|
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) {
|
||||||
|
validateFragmentProps(element);
|
||||||
|
} else {
|
||||||
|
validatePropTypes(element);
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var jsxDEV$1 = jsxWithValidation;
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.jsxDEV = jsxDEV$1;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/react/jsx-dev-runtime.js
|
||||||
|
var require_jsx_dev_runtime = __commonJS({
|
||||||
|
"node_modules/react/jsx-dev-runtime.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_jsx_dev_runtime_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_jsx_dev_runtime();
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react-jsx-dev-runtime.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-dev-runtime.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=react_jsx-dev-runtime.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+923
@@ -0,0 +1,923 @@
|
|||||||
|
import {
|
||||||
|
__commonJS,
|
||||||
|
require_react
|
||||||
|
} from "./chunk-I4MZPW7S.js";
|
||||||
|
|
||||||
|
// node_modules/react/cjs/react-jsx-runtime.development.js
|
||||||
|
var require_react_jsx_runtime_development = __commonJS({
|
||||||
|
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
||||||
|
"use strict";
|
||||||
|
if (true) {
|
||||||
|
(function() {
|
||||||
|
"use strict";
|
||||||
|
var React = require_react();
|
||||||
|
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
||||||
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
||||||
|
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
||||||
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
||||||
|
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
||||||
|
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
||||||
|
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
||||||
|
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
||||||
|
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
||||||
|
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
||||||
|
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
||||||
|
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
||||||
|
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
||||||
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
||||||
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
||||||
|
function getIteratorFn(maybeIterable) {
|
||||||
|
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
||||||
|
if (typeof maybeIterator === "function") {
|
||||||
|
return maybeIterator;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
||||||
|
function error(format) {
|
||||||
|
{
|
||||||
|
{
|
||||||
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||||
|
args[_key2 - 1] = arguments[_key2];
|
||||||
|
}
|
||||||
|
printWarning("error", format, args);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function printWarning(level, format, args) {
|
||||||
|
{
|
||||||
|
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
||||||
|
if (stack !== "") {
|
||||||
|
format += "%s";
|
||||||
|
args = args.concat([stack]);
|
||||||
|
}
|
||||||
|
var argsWithFormat = args.map(function(item) {
|
||||||
|
return String(item);
|
||||||
|
});
|
||||||
|
argsWithFormat.unshift("Warning: " + format);
|
||||||
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var enableScopeAPI = false;
|
||||||
|
var enableCacheElement = false;
|
||||||
|
var enableTransitionTracing = false;
|
||||||
|
var enableLegacyHidden = false;
|
||||||
|
var enableDebugTracing = false;
|
||||||
|
var REACT_MODULE_REFERENCE;
|
||||||
|
{
|
||||||
|
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
||||||
|
}
|
||||||
|
function isValidElementType(type) {
|
||||||
|
if (typeof type === "string" || typeof type === "function") {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (typeof type === "object" && type !== null) {
|
||||||
|
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
||||||
|
// types supported by any Flight configuration anywhere since
|
||||||
|
// we don't know which Flight build this will end up being used
|
||||||
|
// with.
|
||||||
|
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
function getWrappedName(outerType, innerType, wrapperName) {
|
||||||
|
var displayName = outerType.displayName;
|
||||||
|
if (displayName) {
|
||||||
|
return displayName;
|
||||||
|
}
|
||||||
|
var functionName = innerType.displayName || innerType.name || "";
|
||||||
|
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
||||||
|
}
|
||||||
|
function getContextName(type) {
|
||||||
|
return type.displayName || "Context";
|
||||||
|
}
|
||||||
|
function getComponentNameFromType(type) {
|
||||||
|
if (type == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof type.tag === "number") {
|
||||||
|
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
return type.displayName || type.name || null;
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_FRAGMENT_TYPE:
|
||||||
|
return "Fragment";
|
||||||
|
case REACT_PORTAL_TYPE:
|
||||||
|
return "Portal";
|
||||||
|
case REACT_PROFILER_TYPE:
|
||||||
|
return "Profiler";
|
||||||
|
case REACT_STRICT_MODE_TYPE:
|
||||||
|
return "StrictMode";
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return "Suspense";
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return "SuspenseList";
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_CONTEXT_TYPE:
|
||||||
|
var context = type;
|
||||||
|
return getContextName(context) + ".Consumer";
|
||||||
|
case REACT_PROVIDER_TYPE:
|
||||||
|
var provider = type;
|
||||||
|
return getContextName(provider._context) + ".Provider";
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return getWrappedName(type, type.render, "ForwardRef");
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
var outerName = type.displayName || null;
|
||||||
|
if (outerName !== null) {
|
||||||
|
return outerName;
|
||||||
|
}
|
||||||
|
return getComponentNameFromType(type.type) || "Memo";
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return getComponentNameFromType(init(payload));
|
||||||
|
} catch (x) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
var assign = Object.assign;
|
||||||
|
var disabledDepth = 0;
|
||||||
|
var prevLog;
|
||||||
|
var prevInfo;
|
||||||
|
var prevWarn;
|
||||||
|
var prevError;
|
||||||
|
var prevGroup;
|
||||||
|
var prevGroupCollapsed;
|
||||||
|
var prevGroupEnd;
|
||||||
|
function disabledLog() {
|
||||||
|
}
|
||||||
|
disabledLog.__reactDisabledLog = true;
|
||||||
|
function disableLogs() {
|
||||||
|
{
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
prevLog = console.log;
|
||||||
|
prevInfo = console.info;
|
||||||
|
prevWarn = console.warn;
|
||||||
|
prevError = console.error;
|
||||||
|
prevGroup = console.group;
|
||||||
|
prevGroupCollapsed = console.groupCollapsed;
|
||||||
|
prevGroupEnd = console.groupEnd;
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
value: disabledLog,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
info: props,
|
||||||
|
log: props,
|
||||||
|
warn: props,
|
||||||
|
error: props,
|
||||||
|
group: props,
|
||||||
|
groupCollapsed: props,
|
||||||
|
groupEnd: props
|
||||||
|
});
|
||||||
|
}
|
||||||
|
disabledDepth++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function reenableLogs() {
|
||||||
|
{
|
||||||
|
disabledDepth--;
|
||||||
|
if (disabledDepth === 0) {
|
||||||
|
var props = {
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true,
|
||||||
|
writable: true
|
||||||
|
};
|
||||||
|
Object.defineProperties(console, {
|
||||||
|
log: assign({}, props, {
|
||||||
|
value: prevLog
|
||||||
|
}),
|
||||||
|
info: assign({}, props, {
|
||||||
|
value: prevInfo
|
||||||
|
}),
|
||||||
|
warn: assign({}, props, {
|
||||||
|
value: prevWarn
|
||||||
|
}),
|
||||||
|
error: assign({}, props, {
|
||||||
|
value: prevError
|
||||||
|
}),
|
||||||
|
group: assign({}, props, {
|
||||||
|
value: prevGroup
|
||||||
|
}),
|
||||||
|
groupCollapsed: assign({}, props, {
|
||||||
|
value: prevGroupCollapsed
|
||||||
|
}),
|
||||||
|
groupEnd: assign({}, props, {
|
||||||
|
value: prevGroupEnd
|
||||||
|
})
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if (disabledDepth < 0) {
|
||||||
|
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
||||||
|
var prefix;
|
||||||
|
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
||||||
|
{
|
||||||
|
if (prefix === void 0) {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
||||||
|
prefix = match && match[1] || "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "\n" + prefix + name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var reentry = false;
|
||||||
|
var componentFrameCache;
|
||||||
|
{
|
||||||
|
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
||||||
|
componentFrameCache = new PossiblyWeakMap();
|
||||||
|
}
|
||||||
|
function describeNativeComponentFrame(fn, construct) {
|
||||||
|
if (!fn || reentry) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
var frame = componentFrameCache.get(fn);
|
||||||
|
if (frame !== void 0) {
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var control;
|
||||||
|
reentry = true;
|
||||||
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
||||||
|
Error.prepareStackTrace = void 0;
|
||||||
|
var previousDispatcher;
|
||||||
|
{
|
||||||
|
previousDispatcher = ReactCurrentDispatcher.current;
|
||||||
|
ReactCurrentDispatcher.current = null;
|
||||||
|
disableLogs();
|
||||||
|
}
|
||||||
|
try {
|
||||||
|
if (construct) {
|
||||||
|
var Fake = function() {
|
||||||
|
throw Error();
|
||||||
|
};
|
||||||
|
Object.defineProperty(Fake.prototype, "props", {
|
||||||
|
set: function() {
|
||||||
|
throw Error();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (typeof Reflect === "object" && Reflect.construct) {
|
||||||
|
try {
|
||||||
|
Reflect.construct(Fake, []);
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
Reflect.construct(fn, [], Fake);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
Fake.call();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn.call(Fake.prototype);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
throw Error();
|
||||||
|
} catch (x) {
|
||||||
|
control = x;
|
||||||
|
}
|
||||||
|
fn();
|
||||||
|
}
|
||||||
|
} catch (sample) {
|
||||||
|
if (sample && control && typeof sample.stack === "string") {
|
||||||
|
var sampleLines = sample.stack.split("\n");
|
||||||
|
var controlLines = control.stack.split("\n");
|
||||||
|
var s = sampleLines.length - 1;
|
||||||
|
var c = controlLines.length - 1;
|
||||||
|
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
||||||
|
c--;
|
||||||
|
}
|
||||||
|
for (; s >= 1 && c >= 0; s--, c--) {
|
||||||
|
if (sampleLines[s] !== controlLines[c]) {
|
||||||
|
if (s !== 1 || c !== 1) {
|
||||||
|
do {
|
||||||
|
s--;
|
||||||
|
c--;
|
||||||
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
||||||
|
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
||||||
|
if (fn.displayName && _frame.includes("<anonymous>")) {
|
||||||
|
_frame = _frame.replace("<anonymous>", fn.displayName);
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, _frame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return _frame;
|
||||||
|
}
|
||||||
|
} while (s >= 1 && c >= 0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} finally {
|
||||||
|
reentry = false;
|
||||||
|
{
|
||||||
|
ReactCurrentDispatcher.current = previousDispatcher;
|
||||||
|
reenableLogs();
|
||||||
|
}
|
||||||
|
Error.prepareStackTrace = previousPrepareStackTrace;
|
||||||
|
}
|
||||||
|
var name = fn ? fn.displayName || fn.name : "";
|
||||||
|
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
||||||
|
{
|
||||||
|
if (typeof fn === "function") {
|
||||||
|
componentFrameCache.set(fn, syntheticFrame);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return syntheticFrame;
|
||||||
|
}
|
||||||
|
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(fn, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function shouldConstruct(Component) {
|
||||||
|
var prototype = Component.prototype;
|
||||||
|
return !!(prototype && prototype.isReactComponent);
|
||||||
|
}
|
||||||
|
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
||||||
|
if (type == null) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
if (typeof type === "function") {
|
||||||
|
{
|
||||||
|
return describeNativeComponentFrame(type, shouldConstruct(type));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (typeof type === "string") {
|
||||||
|
return describeBuiltInComponentFrame(type);
|
||||||
|
}
|
||||||
|
switch (type) {
|
||||||
|
case REACT_SUSPENSE_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("Suspense");
|
||||||
|
case REACT_SUSPENSE_LIST_TYPE:
|
||||||
|
return describeBuiltInComponentFrame("SuspenseList");
|
||||||
|
}
|
||||||
|
if (typeof type === "object") {
|
||||||
|
switch (type.$$typeof) {
|
||||||
|
case REACT_FORWARD_REF_TYPE:
|
||||||
|
return describeFunctionComponentFrame(type.render);
|
||||||
|
case REACT_MEMO_TYPE:
|
||||||
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
||||||
|
case REACT_LAZY_TYPE: {
|
||||||
|
var lazyComponent = type;
|
||||||
|
var payload = lazyComponent._payload;
|
||||||
|
var init = lazyComponent._init;
|
||||||
|
try {
|
||||||
|
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
||||||
|
} catch (x) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||||
|
var loggedTypeFailures = {};
|
||||||
|
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
||||||
|
{
|
||||||
|
var has = Function.call.bind(hasOwnProperty);
|
||||||
|
for (var typeSpecName in typeSpecs) {
|
||||||
|
if (has(typeSpecs, typeSpecName)) {
|
||||||
|
var error$1 = void 0;
|
||||||
|
try {
|
||||||
|
if (typeof typeSpecs[typeSpecName] !== "function") {
|
||||||
|
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
||||||
|
err.name = "Invariant Violation";
|
||||||
|
throw err;
|
||||||
|
}
|
||||||
|
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
||||||
|
} catch (ex) {
|
||||||
|
error$1 = ex;
|
||||||
|
}
|
||||||
|
if (error$1 && !(error$1 instanceof Error)) {
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
||||||
|
loggedTypeFailures[error$1.message] = true;
|
||||||
|
setCurrentlyValidatingElement(element);
|
||||||
|
error("Failed %s type: %s", location, error$1.message);
|
||||||
|
setCurrentlyValidatingElement(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var isArrayImpl = Array.isArray;
|
||||||
|
function isArray(a) {
|
||||||
|
return isArrayImpl(a);
|
||||||
|
}
|
||||||
|
function typeName(value) {
|
||||||
|
{
|
||||||
|
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
||||||
|
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
||||||
|
return type;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function willCoercionThrow(value) {
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
testStringCoercion(value);
|
||||||
|
return false;
|
||||||
|
} catch (e) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function testStringCoercion(value) {
|
||||||
|
return "" + value;
|
||||||
|
}
|
||||||
|
function checkKeyStringCoercion(value) {
|
||||||
|
{
|
||||||
|
if (willCoercionThrow(value)) {
|
||||||
|
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
||||||
|
return testStringCoercion(value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var RESERVED_PROPS = {
|
||||||
|
key: true,
|
||||||
|
ref: true,
|
||||||
|
__self: true,
|
||||||
|
__source: true
|
||||||
|
};
|
||||||
|
var specialPropKeyWarningShown;
|
||||||
|
var specialPropRefWarningShown;
|
||||||
|
var didWarnAboutStringRefs;
|
||||||
|
{
|
||||||
|
didWarnAboutStringRefs = {};
|
||||||
|
}
|
||||||
|
function hasValidRef(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "ref")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.ref !== void 0;
|
||||||
|
}
|
||||||
|
function hasValidKey(config) {
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(config, "key")) {
|
||||||
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
||||||
|
if (getter && getter.isReactWarning) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return config.key !== void 0;
|
||||||
|
}
|
||||||
|
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||||
|
{
|
||||||
|
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
||||||
|
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
||||||
|
if (!didWarnAboutStringRefs[componentName]) {
|
||||||
|
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
||||||
|
didWarnAboutStringRefs[componentName] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineKeyPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingKey = function() {
|
||||||
|
if (!specialPropKeyWarningShown) {
|
||||||
|
specialPropKeyWarningShown = true;
|
||||||
|
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingKey.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "key", {
|
||||||
|
get: warnAboutAccessingKey,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function defineRefPropWarningGetter(props, displayName) {
|
||||||
|
{
|
||||||
|
var warnAboutAccessingRef = function() {
|
||||||
|
if (!specialPropRefWarningShown) {
|
||||||
|
specialPropRefWarningShown = true;
|
||||||
|
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
warnAboutAccessingRef.isReactWarning = true;
|
||||||
|
Object.defineProperty(props, "ref", {
|
||||||
|
get: warnAboutAccessingRef,
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
||||||
|
var element = {
|
||||||
|
// This tag allows us to uniquely identify this as a React Element
|
||||||
|
$$typeof: REACT_ELEMENT_TYPE,
|
||||||
|
// Built-in properties that belong on the element
|
||||||
|
type,
|
||||||
|
key,
|
||||||
|
ref,
|
||||||
|
props,
|
||||||
|
// Record the component responsible for creating this element.
|
||||||
|
_owner: owner
|
||||||
|
};
|
||||||
|
{
|
||||||
|
element._store = {};
|
||||||
|
Object.defineProperty(element._store, "validated", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: true,
|
||||||
|
value: false
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_self", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: self
|
||||||
|
});
|
||||||
|
Object.defineProperty(element, "_source", {
|
||||||
|
configurable: false,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
value: source
|
||||||
|
});
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(element.props);
|
||||||
|
Object.freeze(element);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
};
|
||||||
|
function jsxDEV(type, config, maybeKey, source, self) {
|
||||||
|
{
|
||||||
|
var propName;
|
||||||
|
var props = {};
|
||||||
|
var key = null;
|
||||||
|
var ref = null;
|
||||||
|
if (maybeKey !== void 0) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(maybeKey);
|
||||||
|
}
|
||||||
|
key = "" + maybeKey;
|
||||||
|
}
|
||||||
|
if (hasValidKey(config)) {
|
||||||
|
{
|
||||||
|
checkKeyStringCoercion(config.key);
|
||||||
|
}
|
||||||
|
key = "" + config.key;
|
||||||
|
}
|
||||||
|
if (hasValidRef(config)) {
|
||||||
|
ref = config.ref;
|
||||||
|
warnIfStringRefCannotBeAutoConverted(config, self);
|
||||||
|
}
|
||||||
|
for (propName in config) {
|
||||||
|
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
||||||
|
props[propName] = config[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type && type.defaultProps) {
|
||||||
|
var defaultProps = type.defaultProps;
|
||||||
|
for (propName in defaultProps) {
|
||||||
|
if (props[propName] === void 0) {
|
||||||
|
props[propName] = defaultProps[propName];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (key || ref) {
|
||||||
|
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
||||||
|
if (key) {
|
||||||
|
defineKeyPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
if (ref) {
|
||||||
|
defineRefPropWarningGetter(props, displayName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
||||||
|
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
||||||
|
function setCurrentlyValidatingElement$1(element) {
|
||||||
|
{
|
||||||
|
if (element) {
|
||||||
|
var owner = element._owner;
|
||||||
|
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
||||||
|
} else {
|
||||||
|
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var propTypesMisspellWarningShown;
|
||||||
|
{
|
||||||
|
propTypesMisspellWarningShown = false;
|
||||||
|
}
|
||||||
|
function isValidElement(object) {
|
||||||
|
{
|
||||||
|
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getDeclarationErrorAddendum() {
|
||||||
|
{
|
||||||
|
if (ReactCurrentOwner$1.current) {
|
||||||
|
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
||||||
|
if (name) {
|
||||||
|
return "\n\nCheck the render method of `" + name + "`.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function getSourceInfoErrorAddendum(source) {
|
||||||
|
{
|
||||||
|
if (source !== void 0) {
|
||||||
|
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
||||||
|
var lineNumber = source.lineNumber;
|
||||||
|
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var ownerHasKeyUseWarning = {};
|
||||||
|
function getCurrentComponentErrorInfo(parentType) {
|
||||||
|
{
|
||||||
|
var info = getDeclarationErrorAddendum();
|
||||||
|
if (!info) {
|
||||||
|
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
||||||
|
if (parentName) {
|
||||||
|
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateExplicitKey(element, parentType) {
|
||||||
|
{
|
||||||
|
if (!element._store || element._store.validated || element.key != null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
element._store.validated = true;
|
||||||
|
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
||||||
|
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
||||||
|
var childOwner = "";
|
||||||
|
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
||||||
|
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
||||||
|
}
|
||||||
|
setCurrentlyValidatingElement$1(element);
|
||||||
|
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateChildKeys(node, parentType) {
|
||||||
|
{
|
||||||
|
if (typeof node !== "object") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (isArray(node)) {
|
||||||
|
for (var i = 0; i < node.length; i++) {
|
||||||
|
var child = node[i];
|
||||||
|
if (isValidElement(child)) {
|
||||||
|
validateExplicitKey(child, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (isValidElement(node)) {
|
||||||
|
if (node._store) {
|
||||||
|
node._store.validated = true;
|
||||||
|
}
|
||||||
|
} else if (node) {
|
||||||
|
var iteratorFn = getIteratorFn(node);
|
||||||
|
if (typeof iteratorFn === "function") {
|
||||||
|
if (iteratorFn !== node.entries) {
|
||||||
|
var iterator = iteratorFn.call(node);
|
||||||
|
var step;
|
||||||
|
while (!(step = iterator.next()).done) {
|
||||||
|
if (isValidElement(step.value)) {
|
||||||
|
validateExplicitKey(step.value, parentType);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validatePropTypes(element) {
|
||||||
|
{
|
||||||
|
var type = element.type;
|
||||||
|
if (type === null || type === void 0 || typeof type === "string") {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
var propTypes;
|
||||||
|
if (typeof type === "function") {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
||||||
|
// Inner props are checked in the reconciler.
|
||||||
|
type.$$typeof === REACT_MEMO_TYPE)) {
|
||||||
|
propTypes = type.propTypes;
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (propTypes) {
|
||||||
|
var name = getComponentNameFromType(type);
|
||||||
|
checkPropTypes(propTypes, element.props, "prop", name, element);
|
||||||
|
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
||||||
|
propTypesMisspellWarningShown = true;
|
||||||
|
var _name = getComponentNameFromType(type);
|
||||||
|
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
||||||
|
}
|
||||||
|
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
||||||
|
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function validateFragmentProps(fragment) {
|
||||||
|
{
|
||||||
|
var keys = Object.keys(fragment.props);
|
||||||
|
for (var i = 0; i < keys.length; i++) {
|
||||||
|
var key = keys[i];
|
||||||
|
if (key !== "children" && key !== "key") {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (fragment.ref !== null) {
|
||||||
|
setCurrentlyValidatingElement$1(fragment);
|
||||||
|
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
||||||
|
setCurrentlyValidatingElement$1(null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var didWarnAboutKeySpread = {};
|
||||||
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
||||||
|
{
|
||||||
|
var validType = isValidElementType(type);
|
||||||
|
if (!validType) {
|
||||||
|
var info = "";
|
||||||
|
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
||||||
|
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
||||||
|
}
|
||||||
|
var sourceInfo = getSourceInfoErrorAddendum(source);
|
||||||
|
if (sourceInfo) {
|
||||||
|
info += sourceInfo;
|
||||||
|
} else {
|
||||||
|
info += getDeclarationErrorAddendum();
|
||||||
|
}
|
||||||
|
var typeString;
|
||||||
|
if (type === null) {
|
||||||
|
typeString = "null";
|
||||||
|
} else if (isArray(type)) {
|
||||||
|
typeString = "array";
|
||||||
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
||||||
|
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
||||||
|
info = " Did you accidentally export a JSX literal instead of a component?";
|
||||||
|
} else {
|
||||||
|
typeString = typeof type;
|
||||||
|
}
|
||||||
|
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
||||||
|
}
|
||||||
|
var element = jsxDEV(type, props, key, source, self);
|
||||||
|
if (element == null) {
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
if (validType) {
|
||||||
|
var children = props.children;
|
||||||
|
if (children !== void 0) {
|
||||||
|
if (isStaticChildren) {
|
||||||
|
if (isArray(children)) {
|
||||||
|
for (var i = 0; i < children.length; i++) {
|
||||||
|
validateChildKeys(children[i], type);
|
||||||
|
}
|
||||||
|
if (Object.freeze) {
|
||||||
|
Object.freeze(children);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
validateChildKeys(children, type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
if (hasOwnProperty.call(props, "key")) {
|
||||||
|
var componentName = getComponentNameFromType(type);
|
||||||
|
var keys = Object.keys(props).filter(function(k) {
|
||||||
|
return k !== "key";
|
||||||
|
});
|
||||||
|
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
||||||
|
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
||||||
|
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
||||||
|
error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
||||||
|
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (type === REACT_FRAGMENT_TYPE) {
|
||||||
|
validateFragmentProps(element);
|
||||||
|
} else {
|
||||||
|
validatePropTypes(element);
|
||||||
|
}
|
||||||
|
return element;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function jsxWithValidationStatic(type, props, key) {
|
||||||
|
{
|
||||||
|
return jsxWithValidation(type, props, key, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function jsxWithValidationDynamic(type, props, key) {
|
||||||
|
{
|
||||||
|
return jsxWithValidation(type, props, key, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var jsx = jsxWithValidationDynamic;
|
||||||
|
var jsxs = jsxWithValidationStatic;
|
||||||
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||||
|
exports.jsx = jsx;
|
||||||
|
exports.jsxs = jsxs;
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// node_modules/react/jsx-runtime.js
|
||||||
|
var require_jsx_runtime = __commonJS({
|
||||||
|
"node_modules/react/jsx-runtime.js"(exports, module) {
|
||||||
|
if (false) {
|
||||||
|
module.exports = null;
|
||||||
|
} else {
|
||||||
|
module.exports = require_react_jsx_runtime_development();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
export default require_jsx_runtime();
|
||||||
|
/*! Bundled license information:
|
||||||
|
|
||||||
|
react/cjs/react-jsx-runtime.development.js:
|
||||||
|
(**
|
||||||
|
* @license React
|
||||||
|
* react-jsx-runtime.development.js
|
||||||
|
*
|
||||||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
|
*
|
||||||
|
* This source code is licensed under the MIT license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
|
*)
|
||||||
|
*/
|
||||||
|
//# sourceMappingURL=react_jsx-runtime.js.map
|
||||||
+7
File diff suppressed because one or more lines are too long
+22
@@ -0,0 +1,22 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
+19
@@ -0,0 +1,19 @@
|
|||||||
|
# @babel/code-frame
|
||||||
|
|
||||||
|
> Generate errors that contain a code frame that point to source locations.
|
||||||
|
|
||||||
|
See our website [@babel/code-frame](https://babeljs.io/docs/babel-code-frame) for more information.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
Using npm:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install --save-dev @babel/code-frame
|
||||||
|
```
|
||||||
|
|
||||||
|
or using yarn:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
yarn add @babel/code-frame --dev
|
||||||
|
```
|
||||||
+217
@@ -0,0 +1,217 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||||||
|
|
||||||
|
var picocolors = require('picocolors');
|
||||||
|
var jsTokens = require('js-tokens');
|
||||||
|
var helperValidatorIdentifier = require('@babel/helper-validator-identifier');
|
||||||
|
|
||||||
|
function isColorSupported() {
|
||||||
|
return (typeof process === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? false : picocolors.isColorSupported
|
||||||
|
);
|
||||||
|
}
|
||||||
|
const compose = (f, g) => v => f(g(v));
|
||||||
|
function buildDefs(colors) {
|
||||||
|
return {
|
||||||
|
keyword: colors.cyan,
|
||||||
|
capitalized: colors.yellow,
|
||||||
|
jsxIdentifier: colors.yellow,
|
||||||
|
punctuator: colors.yellow,
|
||||||
|
number: colors.magenta,
|
||||||
|
string: colors.green,
|
||||||
|
regex: colors.magenta,
|
||||||
|
comment: colors.gray,
|
||||||
|
invalid: compose(compose(colors.white, colors.bgRed), colors.bold),
|
||||||
|
gutter: colors.gray,
|
||||||
|
marker: compose(colors.red, colors.bold),
|
||||||
|
message: compose(colors.red, colors.bold),
|
||||||
|
reset: colors.reset
|
||||||
|
};
|
||||||
|
}
|
||||||
|
const defsOn = buildDefs(picocolors.createColors(true));
|
||||||
|
const defsOff = buildDefs(picocolors.createColors(false));
|
||||||
|
function getDefs(enabled) {
|
||||||
|
return enabled ? defsOn : defsOff;
|
||||||
|
}
|
||||||
|
|
||||||
|
const sometimesKeywords = new Set(["as", "async", "from", "get", "of", "set"]);
|
||||||
|
const NEWLINE$1 = /\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") {
|
||||||
|
const tokenValue = token.value;
|
||||||
|
if (helperValidatorIdentifier.isKeyword(tokenValue) || helperValidatorIdentifier.isStrictReservedWord(tokenValue, true) || sometimesKeywords.has(tokenValue)) {
|
||||||
|
return "keyword";
|
||||||
|
}
|
||||||
|
if (JSX_TAG.test(tokenValue) && (text[offset - 1] === "<" || text.slice(offset - 2, offset) === "</")) {
|
||||||
|
return "jsxIdentifier";
|
||||||
|
}
|
||||||
|
const firstChar = String.fromCodePoint(tokenValue.codePointAt(0));
|
||||||
|
if (firstChar !== firstChar.toLowerCase()) {
|
||||||
|
return "capitalized";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (token.type === "punctuator" && BRACKET.test(token.value)) {
|
||||||
|
return "bracket";
|
||||||
|
}
|
||||||
|
if (token.type === "invalid" && (token.value === "@" || token.value === "#")) {
|
||||||
|
return "punctuator";
|
||||||
|
}
|
||||||
|
return token.type;
|
||||||
|
};
|
||||||
|
tokenize = function* (text) {
|
||||||
|
let match;
|
||||||
|
while (match = jsTokens.default.exec(text)) {
|
||||||
|
const token = jsTokens.matchToToken(match);
|
||||||
|
yield {
|
||||||
|
type: getTokenType(token, match.index, text),
|
||||||
|
value: token.value
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
function highlight(text) {
|
||||||
|
if (text === "") return "";
|
||||||
|
const defs = getDefs(true);
|
||||||
|
let highlighted = "";
|
||||||
|
for (const {
|
||||||
|
type,
|
||||||
|
value
|
||||||
|
} of tokenize(text)) {
|
||||||
|
if (type in defs) {
|
||||||
|
highlighted += value.split(NEWLINE$1).map(str => defs[type](str)).join("\n");
|
||||||
|
} else {
|
||||||
|
highlighted += value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return highlighted;
|
||||||
|
}
|
||||||
|
|
||||||
|
let deprecationWarningShown = false;
|
||||||
|
const NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
||||||
|
function getMarkerLines(loc, source, opts, startLineBaseZero) {
|
||||||
|
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 - startLineBaseZero;
|
||||||
|
const startColumn = startLoc.column;
|
||||||
|
const endLine = endLoc.line - startLineBaseZero;
|
||||||
|
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 shouldHighlight = opts.forceColor || isColorSupported() && opts.highlightCode;
|
||||||
|
const startLineBaseZero = (opts.startLine || 1) - 1;
|
||||||
|
const defs = getDefs(shouldHighlight);
|
||||||
|
const lines = rawLines.split(NEWLINE);
|
||||||
|
const {
|
||||||
|
start,
|
||||||
|
end,
|
||||||
|
markerLines
|
||||||
|
} = getMarkerLines(loc, lines, opts, startLineBaseZero);
|
||||||
|
const hasColumns = loc.start && typeof loc.start.column === "number";
|
||||||
|
const numberMaxWidth = String(end + startLineBaseZero).length;
|
||||||
|
const highlightedLines = shouldHighlight ? highlight(rawLines) : rawLines;
|
||||||
|
let frame = highlightedLines.split(NEWLINE, end).slice(start, end).map((line, index) => {
|
||||||
|
const number = start + 1 + index;
|
||||||
|
const paddedNumber = ` ${number + startLineBaseZero}`.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 ", defs.gutter(gutter.replace(/\d/g, " ")), " ", markerSpacing, defs.marker("^").repeat(numberOfMarkers)].join("");
|
||||||
|
if (lastMarkerLine && opts.message) {
|
||||||
|
markerLine += " " + defs.message(opts.message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return [defs.marker(">"), defs.gutter(gutter), line.length > 0 ? ` ${line}` : "", markerLine].join("");
|
||||||
|
} else {
|
||||||
|
return ` ${defs.gutter(gutter)}${line.length > 0 ? ` ${line}` : ""}`;
|
||||||
|
}
|
||||||
|
}).join("\n");
|
||||||
|
if (opts.message && !hasColumns) {
|
||||||
|
frame = `${" ".repeat(numberMaxWidth + 1)}${opts.message}\n${frame}`;
|
||||||
|
}
|
||||||
|
if (shouldHighlight) {
|
||||||
|
return defs.reset(frame);
|
||||||
|
} else {
|
||||||
|
return frame;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function index (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);
|
||||||
|
}
|
||||||
|
|
||||||
|
exports.codeFrameColumns = codeFrameColumns;
|
||||||
|
exports.default = index;
|
||||||
|
exports.highlight = highlight;
|
||||||
|
//# sourceMappingURL=index.js.map
|
||||||
+1
File diff suppressed because one or more lines are too long
+32
@@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"name": "@babel/code-frame",
|
||||||
|
"version": "7.29.7",
|
||||||
|
"description": "Generate errors that contain a code frame that point to source locations.",
|
||||||
|
"author": "The Babel Team (https://babel.dev/team)",
|
||||||
|
"homepage": "https://babel.dev/docs/en/next/babel-code-frame",
|
||||||
|
"bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+is%3Aopen",
|
||||||
|
"license": "MIT",
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/babel/babel.git",
|
||||||
|
"directory": "packages/babel-code-frame"
|
||||||
|
},
|
||||||
|
"main": "./lib/index.js",
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/helper-validator-identifier": "^7.29.7",
|
||||||
|
"js-tokens": "^4.0.0",
|
||||||
|
"picocolors": "^1.1.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"charcodes": "^0.2.0",
|
||||||
|
"import-meta-resolve": "^4.1.0",
|
||||||
|
"strip-ansi": "^4.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.9.0"
|
||||||
|
},
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
+19
@@ -0,0 +1,19 @@
|
|||||||
|
# @babel/compat-data
|
||||||
|
|
||||||
|
> The compat-data to determine required Babel plugins
|
||||||
|
|
||||||
|
See our website [@babel/compat-data](https://babeljs.io/docs/babel-compat-data) for more information.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
Using npm:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install --save @babel/compat-data
|
||||||
|
```
|
||||||
|
|
||||||
|
or using yarn:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
yarn add @babel/compat-data
|
||||||
|
```
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
// Todo (Babel 8): remove this file as Babel 8 drop support of core-js 2
|
||||||
|
module.exports = require("./data/corejs2-built-ins.json");
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
// Todo (Babel 8): remove this file now that it is included in babel-plugin-polyfill-corejs3
|
||||||
|
module.exports = require("./data/corejs3-shipped-proposals.json");
|
||||||
+2120
File diff suppressed because it is too large
Load Diff
+5
@@ -0,0 +1,5 @@
|
|||||||
|
[
|
||||||
|
"esnext.promise.all-settled",
|
||||||
|
"esnext.string.match-all",
|
||||||
|
"esnext.global-this"
|
||||||
|
]
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"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"
|
||||||
|
}
|
||||||
|
}
|
||||||
+38
@@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"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-destructuring": [
|
||||||
|
"bugfix/transform-safari-rest-destructuring-rhs-array"
|
||||||
|
],
|
||||||
|
"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",
|
||||||
|
"bugfix/transform-firefox-class-in-computed-class-key",
|
||||||
|
"bugfix/transform-safari-class-field-initializer-scope"
|
||||||
|
],
|
||||||
|
"proposal-class-properties": [
|
||||||
|
"bugfix/transform-v8-static-class-fields-redefine-readonly",
|
||||||
|
"bugfix/transform-firefox-class-in-computed-class-key",
|
||||||
|
"bugfix/transform-safari-class-field-initializer-scope"
|
||||||
|
]
|
||||||
|
}
|
||||||
+231
@@ -0,0 +1,231 @@
|
|||||||
|
{
|
||||||
|
"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",
|
||||||
|
"rhino": "1.9",
|
||||||
|
"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-safari-rest-destructuring-rhs-array": {
|
||||||
|
"chrome": "49",
|
||||||
|
"opera": "36",
|
||||||
|
"edge": "14",
|
||||||
|
"firefox": "34",
|
||||||
|
"safari": "14.1",
|
||||||
|
"node": "6",
|
||||||
|
"deno": "1",
|
||||||
|
"ios": "14.5",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.8",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.8",
|
||||||
|
"opera_mobile": "57",
|
||||||
|
"electron": "8.0"
|
||||||
|
},
|
||||||
|
"transform-parameters": {
|
||||||
|
"chrome": "49",
|
||||||
|
"opera": "36",
|
||||||
|
"edge": "15",
|
||||||
|
"firefox": "52",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.9",
|
||||||
|
"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-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": "10",
|
||||||
|
"node": "6",
|
||||||
|
"deno": "1",
|
||||||
|
"ios": "10",
|
||||||
|
"samsung": "5",
|
||||||
|
"opera_mobile": "37",
|
||||||
|
"electron": "1.1"
|
||||||
|
}
|
||||||
|
}
|
||||||
+843
@@ -0,0 +1,843 @@
|
|||||||
|
{
|
||||||
|
"transform-explicit-resource-management": {
|
||||||
|
"chrome": "141",
|
||||||
|
"edge": "141",
|
||||||
|
"firefox": "141",
|
||||||
|
"node": "25",
|
||||||
|
"electron": "39.0"
|
||||||
|
},
|
||||||
|
"transform-duplicate-named-capturing-groups-regex": {
|
||||||
|
"chrome": "126",
|
||||||
|
"opera": "112",
|
||||||
|
"edge": "126",
|
||||||
|
"firefox": "129",
|
||||||
|
"safari": "17.4",
|
||||||
|
"node": "23",
|
||||||
|
"ios": "17.4",
|
||||||
|
"rhino": "1.9",
|
||||||
|
"electron": "31.0"
|
||||||
|
},
|
||||||
|
"transform-regexp-modifiers": {
|
||||||
|
"chrome": "125",
|
||||||
|
"opera": "111",
|
||||||
|
"edge": "125",
|
||||||
|
"firefox": "132",
|
||||||
|
"node": "23",
|
||||||
|
"samsung": "27",
|
||||||
|
"electron": "31.0"
|
||||||
|
},
|
||||||
|
"transform-unicode-sets-regex": {
|
||||||
|
"chrome": "112",
|
||||||
|
"opera": "98",
|
||||||
|
"edge": "112",
|
||||||
|
"firefox": "116",
|
||||||
|
"safari": "17",
|
||||||
|
"node": "20",
|
||||||
|
"deno": "1.32",
|
||||||
|
"ios": "17",
|
||||||
|
"samsung": "23",
|
||||||
|
"opera_mobile": "75",
|
||||||
|
"electron": "24.0"
|
||||||
|
},
|
||||||
|
"bugfix/transform-v8-static-class-fields-redefine-readonly": {
|
||||||
|
"chrome": "98",
|
||||||
|
"opera": "84",
|
||||||
|
"edge": "98",
|
||||||
|
"firefox": "75",
|
||||||
|
"safari": "15",
|
||||||
|
"node": "12",
|
||||||
|
"deno": "1.18",
|
||||||
|
"ios": "15",
|
||||||
|
"samsung": "11",
|
||||||
|
"opera_mobile": "52",
|
||||||
|
"electron": "17.0"
|
||||||
|
},
|
||||||
|
"bugfix/transform-firefox-class-in-computed-class-key": {
|
||||||
|
"chrome": "74",
|
||||||
|
"opera": "62",
|
||||||
|
"edge": "79",
|
||||||
|
"firefox": "126",
|
||||||
|
"safari": "16",
|
||||||
|
"node": "12",
|
||||||
|
"deno": "1",
|
||||||
|
"ios": "16",
|
||||||
|
"samsung": "11",
|
||||||
|
"opera_mobile": "53",
|
||||||
|
"electron": "6.0"
|
||||||
|
},
|
||||||
|
"bugfix/transform-safari-class-field-initializer-scope": {
|
||||||
|
"chrome": "74",
|
||||||
|
"opera": "62",
|
||||||
|
"edge": "79",
|
||||||
|
"firefox": "69",
|
||||||
|
"safari": "16",
|
||||||
|
"node": "12",
|
||||||
|
"deno": "1",
|
||||||
|
"ios": "16",
|
||||||
|
"samsung": "11",
|
||||||
|
"opera_mobile": "53",
|
||||||
|
"electron": "6.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",
|
||||||
|
"rhino": "1.8",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.8",
|
||||||
|
"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": "52",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.7.15",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.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",
|
||||||
|
"rhino": "1.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",
|
||||||
|
"rhino": "1.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",
|
||||||
|
"rhino": "1.9",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.7.15",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.8",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.7.15",
|
||||||
|
"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",
|
||||||
|
"rhino": "1.7.15",
|
||||||
|
"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": "14.1",
|
||||||
|
"node": "6.5",
|
||||||
|
"deno": "1",
|
||||||
|
"ios": "14.5",
|
||||||
|
"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": "48",
|
||||||
|
"opera": "35",
|
||||||
|
"edge": "12",
|
||||||
|
"firefox": "36",
|
||||||
|
"safari": "9",
|
||||||
|
"node": "6",
|
||||||
|
"deno": "1",
|
||||||
|
"ios": "9",
|
||||||
|
"samsung": "5",
|
||||||
|
"rhino": "1.8",
|
||||||
|
"opera_mobile": "35",
|
||||||
|
"electron": "0.37"
|
||||||
|
},
|
||||||
|
"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.0",
|
||||||
|
"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.0",
|
||||||
|
"opera": "60",
|
||||||
|
"opera_mobile": "51",
|
||||||
|
"safari": "14.1",
|
||||||
|
"ios": "14.5",
|
||||||
|
"samsung": "11.0",
|
||||||
|
"android": "72",
|
||||||
|
"electron": "5.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
||||||
|
module.exports = require("./data/native-modules.json");
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
||||||
|
module.exports = require("./data/overlapping-plugins.json");
|
||||||
+40
@@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"name": "@babel/compat-data",
|
||||||
|
"version": "7.29.7",
|
||||||
|
"author": "The Babel Team (https://babel.dev/team)",
|
||||||
|
"license": "MIT",
|
||||||
|
"description": "The compat-data to determine required Babel plugins",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/babel/babel.git",
|
||||||
|
"directory": "packages/babel-compat-data"
|
||||||
|
},
|
||||||
|
"publishConfig": {
|
||||||
|
"access": "public"
|
||||||
|
},
|
||||||
|
"exports": {
|
||||||
|
"./plugins": "./plugins.js",
|
||||||
|
"./native-modules": "./native-modules.js",
|
||||||
|
"./corejs2-built-ins": "./corejs2-built-ins.js",
|
||||||
|
"./corejs3-shipped-proposals": "./corejs3-shipped-proposals.js",
|
||||||
|
"./overlapping-plugins": "./overlapping-plugins.js",
|
||||||
|
"./plugin-bugfixes": "./plugin-bugfixes.js"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"build-data": "./scripts/download-compat-table.sh && node ./scripts/build-data.mjs && node ./scripts/build-modules-support.mjs && node ./scripts/build-bugfixes-targets.mjs"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"babel",
|
||||||
|
"compat-table",
|
||||||
|
"compat-data"
|
||||||
|
],
|
||||||
|
"devDependencies": {
|
||||||
|
"@mdn/browser-compat-data": "^6.0.8",
|
||||||
|
"core-js-compat": "^3.48.0",
|
||||||
|
"electron-to-chromium": "^1.5.278"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=6.9.0"
|
||||||
|
},
|
||||||
|
"type": "commonjs"
|
||||||
|
}
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
||||||
|
module.exports = require("./data/plugin-bugfixes.json");
|
||||||
+2
@@ -0,0 +1,2 @@
|
|||||||
|
// Todo (Babel 8): remove this file, in Babel 8 users import the .json directly
|
||||||
|
module.exports = require("./data/plugins.json");
|
||||||
+22
@@ -0,0 +1,22 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
+19
@@ -0,0 +1,19 @@
|
|||||||
|
# @babel/core
|
||||||
|
|
||||||
|
> Babel compiler core.
|
||||||
|
|
||||||
|
See our website [@babel/core](https://babeljs.io/docs/babel-core) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20core%22+is%3Aopen) associated with this package.
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
Using npm:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install --save-dev @babel/core
|
||||||
|
```
|
||||||
|
|
||||||
|
or using yarn:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
yarn add @babel/core --dev
|
||||||
|
```
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user