vaderjs 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/settings.json +3 -0
- package/package.json +1 -1
- package/readme.md +40 -5
- package/vader.js +123 -13
- package/vaderRouter.js +99 -27
- package/website/dist/init.js +9 -0
- package/website/dist/styles/main.css +9704 -0
- package/website/dist/vader/vader.js +592 -0
- package/website/dist/vader/vaderRouter.js +488 -0
- package/website/index.html +23 -0
- package/website/node_modules/.bin/cssesc +12 -0
- package/website/node_modules/.bin/cssesc.cmd +17 -0
- package/website/node_modules/.bin/cssesc.ps1 +28 -0
- package/website/node_modules/.bin/jiti +12 -0
- package/website/node_modules/.bin/jiti.cmd +17 -0
- package/website/node_modules/.bin/jiti.ps1 +28 -0
- package/website/node_modules/.bin/nanoid +12 -0
- package/website/node_modules/.bin/nanoid.cmd +17 -0
- package/website/node_modules/.bin/nanoid.ps1 +28 -0
- package/website/node_modules/.bin/resolve +12 -0
- package/website/node_modules/.bin/resolve.cmd +17 -0
- package/website/node_modules/.bin/resolve.ps1 +28 -0
- package/website/node_modules/.bin/sucrase +12 -0
- package/website/node_modules/.bin/sucrase-node +12 -0
- package/website/node_modules/.bin/sucrase-node.cmd +17 -0
- package/website/node_modules/.bin/sucrase-node.ps1 +28 -0
- package/website/node_modules/.bin/sucrase.cmd +17 -0
- package/website/node_modules/.bin/sucrase.ps1 +28 -0
- package/website/node_modules/.bin/tailwind +12 -0
- package/website/node_modules/.bin/tailwind.cmd +17 -0
- package/website/node_modules/.bin/tailwind.ps1 +28 -0
- package/website/node_modules/.bin/tailwindcss +12 -0
- package/website/node_modules/.bin/tailwindcss.cmd +17 -0
- package/website/node_modules/.bin/tailwindcss.ps1 +28 -0
- package/website/node_modules/.package-lock.json +919 -0
- package/website/node_modules/@alloc/quick-lru/index.d.ts +128 -0
- package/website/node_modules/@alloc/quick-lru/index.js +263 -0
- package/website/node_modules/@alloc/quick-lru/license +9 -0
- package/website/node_modules/@alloc/quick-lru/package.json +43 -0
- package/website/node_modules/@alloc/quick-lru/readme.md +139 -0
- package/website/node_modules/@jridgewell/gen-mapping/LICENSE +19 -0
- package/website/node_modules/@jridgewell/gen-mapping/README.md +227 -0
- package/website/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs +230 -0
- package/website/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.mjs.map +1 -0
- package/website/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js +236 -0
- package/website/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js.map +1 -0
- package/website/node_modules/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +90 -0
- package/website/node_modules/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
- package/website/node_modules/@jridgewell/gen-mapping/dist/types/types.d.ts +35 -0
- package/website/node_modules/@jridgewell/gen-mapping/package.json +77 -0
- package/website/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/website/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/website/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +242 -0
- package/website/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/website/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +250 -0
- package/website/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/website/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- package/website/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- package/website/node_modules/@jridgewell/set-array/LICENSE +19 -0
- package/website/node_modules/@jridgewell/set-array/README.md +37 -0
- package/website/node_modules/@jridgewell/set-array/dist/set-array.mjs +48 -0
- package/website/node_modules/@jridgewell/set-array/dist/set-array.mjs.map +1 -0
- package/website/node_modules/@jridgewell/set-array/dist/set-array.umd.js +58 -0
- package/website/node_modules/@jridgewell/set-array/dist/set-array.umd.js.map +1 -0
- package/website/node_modules/@jridgewell/set-array/dist/types/set-array.d.ts +26 -0
- package/website/node_modules/@jridgewell/set-array/package.json +66 -0
- package/website/node_modules/@jridgewell/set-array/src/set-array.ts +55 -0
- package/website/node_modules/@jridgewell/sourcemap-codec/LICENSE +21 -0
- package/website/node_modules/@jridgewell/sourcemap-codec/README.md +200 -0
- package/website/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +164 -0
- package/website/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +1 -0
- package/website/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +175 -0
- package/website/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +1 -0
- package/website/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts +6 -0
- package/website/node_modules/@jridgewell/sourcemap-codec/package.json +74 -0
- package/website/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/website/node_modules/@jridgewell/trace-mapping/README.md +252 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +552 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +566 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
- package/website/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
- package/website/node_modules/@jridgewell/trace-mapping/package.json +75 -0
- package/website/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/website/node_modules/@nodelib/fs.scandir/README.md +171 -0
- package/website/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/website/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/website/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/website/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/website/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/website/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/website/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/website/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/website/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/website/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/website/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/website/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/website/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/website/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/website/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/website/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/website/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/website/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/website/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/website/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/website/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/website/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/website/node_modules/@nodelib/fs.stat/README.md +126 -0
- package/website/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/website/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/website/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/website/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/website/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/website/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/website/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/website/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/website/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/website/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/website/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/website/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/website/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/website/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/website/node_modules/@nodelib/fs.walk/README.md +215 -0
- package/website/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/website/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/website/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/website/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/website/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/website/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/website/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/website/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/website/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/website/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/website/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/website/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/website/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/website/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/website/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/website/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/website/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/website/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/website/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/website/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/website/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/website/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/website/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/website/node_modules/any-promise/.jshintrc +4 -0
- package/website/node_modules/any-promise/LICENSE +19 -0
- package/website/node_modules/any-promise/README.md +161 -0
- package/website/node_modules/any-promise/implementation.d.ts +3 -0
- package/website/node_modules/any-promise/implementation.js +1 -0
- package/website/node_modules/any-promise/index.d.ts +73 -0
- package/website/node_modules/any-promise/index.js +1 -0
- package/website/node_modules/any-promise/loader.js +78 -0
- package/website/node_modules/any-promise/optional.js +6 -0
- package/website/node_modules/any-promise/package.json +45 -0
- package/website/node_modules/any-promise/register/bluebird.d.ts +1 -0
- package/website/node_modules/any-promise/register/bluebird.js +2 -0
- package/website/node_modules/any-promise/register/es6-promise.d.ts +1 -0
- package/website/node_modules/any-promise/register/es6-promise.js +2 -0
- package/website/node_modules/any-promise/register/lie.d.ts +1 -0
- package/website/node_modules/any-promise/register/lie.js +2 -0
- package/website/node_modules/any-promise/register/native-promise-only.d.ts +1 -0
- package/website/node_modules/any-promise/register/native-promise-only.js +2 -0
- package/website/node_modules/any-promise/register/pinkie.d.ts +1 -0
- package/website/node_modules/any-promise/register/pinkie.js +2 -0
- package/website/node_modules/any-promise/register/promise.d.ts +1 -0
- package/website/node_modules/any-promise/register/promise.js +2 -0
- package/website/node_modules/any-promise/register/q.d.ts +1 -0
- package/website/node_modules/any-promise/register/q.js +2 -0
- package/website/node_modules/any-promise/register/rsvp.d.ts +1 -0
- package/website/node_modules/any-promise/register/rsvp.js +2 -0
- package/website/node_modules/any-promise/register/vow.d.ts +1 -0
- package/website/node_modules/any-promise/register/vow.js +2 -0
- package/website/node_modules/any-promise/register/when.d.ts +1 -0
- package/website/node_modules/any-promise/register/when.js +2 -0
- package/website/node_modules/any-promise/register-shim.js +18 -0
- package/website/node_modules/any-promise/register.d.ts +17 -0
- package/website/node_modules/any-promise/register.js +94 -0
- package/website/node_modules/anymatch/LICENSE +15 -0
- package/website/node_modules/anymatch/README.md +87 -0
- package/website/node_modules/anymatch/index.d.ts +20 -0
- package/website/node_modules/anymatch/index.js +104 -0
- package/website/node_modules/anymatch/package.json +48 -0
- package/website/node_modules/arg/LICENSE.md +21 -0
- package/website/node_modules/arg/README.md +317 -0
- package/website/node_modules/arg/index.d.ts +44 -0
- package/website/node_modules/arg/index.js +195 -0
- package/website/node_modules/arg/package.json +28 -0
- package/website/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/website/node_modules/balanced-match/LICENSE.md +21 -0
- package/website/node_modules/balanced-match/README.md +97 -0
- package/website/node_modules/balanced-match/index.js +62 -0
- package/website/node_modules/balanced-match/package.json +48 -0
- package/website/node_modules/binary-extensions/binary-extensions.json +260 -0
- package/website/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/website/node_modules/binary-extensions/index.d.ts +14 -0
- package/website/node_modules/binary-extensions/index.js +1 -0
- package/website/node_modules/binary-extensions/license +9 -0
- package/website/node_modules/binary-extensions/package.json +38 -0
- package/website/node_modules/binary-extensions/readme.md +41 -0
- package/website/node_modules/brace-expansion/LICENSE +21 -0
- package/website/node_modules/brace-expansion/README.md +129 -0
- package/website/node_modules/brace-expansion/index.js +201 -0
- package/website/node_modules/brace-expansion/package.json +47 -0
- package/website/node_modules/braces/CHANGELOG.md +184 -0
- package/website/node_modules/braces/LICENSE +21 -0
- package/website/node_modules/braces/README.md +593 -0
- package/website/node_modules/braces/index.js +170 -0
- package/website/node_modules/braces/lib/compile.js +57 -0
- package/website/node_modules/braces/lib/constants.js +57 -0
- package/website/node_modules/braces/lib/expand.js +113 -0
- package/website/node_modules/braces/lib/parse.js +333 -0
- package/website/node_modules/braces/lib/stringify.js +32 -0
- package/website/node_modules/braces/lib/utils.js +112 -0
- package/website/node_modules/braces/package.json +77 -0
- package/website/node_modules/camelcase-css/README.md +27 -0
- package/website/node_modules/camelcase-css/index-es5.js +24 -0
- package/website/node_modules/camelcase-css/index.js +30 -0
- package/website/node_modules/camelcase-css/license +21 -0
- package/website/node_modules/camelcase-css/package.json +34 -0
- package/website/node_modules/chokidar/LICENSE +21 -0
- package/website/node_modules/chokidar/README.md +308 -0
- package/website/node_modules/chokidar/index.js +973 -0
- package/website/node_modules/chokidar/lib/constants.js +65 -0
- package/website/node_modules/chokidar/lib/fsevents-handler.js +524 -0
- package/website/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/website/node_modules/chokidar/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/website/node_modules/chokidar/node_modules/glob-parent/LICENSE +15 -0
- package/website/node_modules/chokidar/node_modules/glob-parent/README.md +137 -0
- package/website/node_modules/chokidar/node_modules/glob-parent/index.js +42 -0
- package/website/node_modules/chokidar/node_modules/glob-parent/package.json +48 -0
- package/website/node_modules/chokidar/package.json +85 -0
- package/website/node_modules/chokidar/types/index.d.ts +188 -0
- package/website/node_modules/colord/CHANGELOG.md +188 -0
- package/website/node_modules/colord/LICENSE.md +21 -0
- package/website/node_modules/colord/README.md +1053 -0
- package/website/node_modules/colord/colord.d.ts +103 -0
- package/website/node_modules/colord/constants.d.ts +10 -0
- package/website/node_modules/colord/extend.d.ts +4 -0
- package/website/node_modules/colord/helpers.d.ts +20 -0
- package/website/node_modules/colord/index.d.ts +5 -0
- package/website/node_modules/colord/index.js +1 -0
- package/website/node_modules/colord/index.mjs +1 -0
- package/website/node_modules/colord/package.json +210 -0
- package/website/node_modules/colord/parse.d.ts +8 -0
- package/website/node_modules/colord/plugins/a11y.d.ts +38 -0
- package/website/node_modules/colord/plugins/a11y.js +1 -0
- package/website/node_modules/colord/plugins/a11y.mjs +1 -0
- package/website/node_modules/colord/plugins/cmyk.d.ts +24 -0
- package/website/node_modules/colord/plugins/cmyk.js +1 -0
- package/website/node_modules/colord/plugins/cmyk.mjs +1 -0
- package/website/node_modules/colord/plugins/harmonies.d.ts +16 -0
- package/website/node_modules/colord/plugins/harmonies.js +1 -0
- package/website/node_modules/colord/plugins/harmonies.mjs +1 -0
- package/website/node_modules/colord/plugins/hwb.d.ts +23 -0
- package/website/node_modules/colord/plugins/hwb.js +1 -0
- package/website/node_modules/colord/plugins/hwb.mjs +1 -0
- package/website/node_modules/colord/plugins/lab.d.ts +23 -0
- package/website/node_modules/colord/plugins/lab.js +1 -0
- package/website/node_modules/colord/plugins/lab.mjs +1 -0
- package/website/node_modules/colord/plugins/lch.d.ts +24 -0
- package/website/node_modules/colord/plugins/lch.js +1 -0
- package/website/node_modules/colord/plugins/lch.mjs +1 -0
- package/website/node_modules/colord/plugins/minify.d.ts +20 -0
- package/website/node_modules/colord/plugins/minify.js +1 -0
- package/website/node_modules/colord/plugins/minify.mjs +1 -0
- package/website/node_modules/colord/plugins/mix.d.ts +27 -0
- package/website/node_modules/colord/plugins/mix.js +1 -0
- package/website/node_modules/colord/plugins/mix.mjs +1 -0
- package/website/node_modules/colord/plugins/names.d.ts +19 -0
- package/website/node_modules/colord/plugins/names.js +1 -0
- package/website/node_modules/colord/plugins/names.mjs +1 -0
- package/website/node_modules/colord/plugins/xyz.d.ts +14 -0
- package/website/node_modules/colord/plugins/xyz.js +1 -0
- package/website/node_modules/colord/plugins/xyz.mjs +1 -0
- package/website/node_modules/colord/random.d.ts +2 -0
- package/website/node_modules/colord/types.d.ts +67 -0
- package/website/node_modules/commander/CHANGELOG.md +436 -0
- package/website/node_modules/commander/LICENSE +22 -0
- package/website/node_modules/commander/Readme.md +713 -0
- package/website/node_modules/commander/index.js +1649 -0
- package/website/node_modules/commander/package.json +41 -0
- package/website/node_modules/commander/typings/index.d.ts +311 -0
- package/website/node_modules/concat-map/.travis.yml +4 -0
- package/website/node_modules/concat-map/LICENSE +18 -0
- package/website/node_modules/concat-map/README.markdown +62 -0
- package/website/node_modules/concat-map/example/map.js +6 -0
- package/website/node_modules/concat-map/index.js +13 -0
- package/website/node_modules/concat-map/package.json +43 -0
- package/website/node_modules/concat-map/test/map.js +39 -0
- package/website/node_modules/css-selector-tokenizer/LICENSE +7 -0
- package/website/node_modules/css-selector-tokenizer/README.md +92 -0
- package/website/node_modules/css-selector-tokenizer/lib/index.js +4 -0
- package/website/node_modules/css-selector-tokenizer/lib/parse.js +239 -0
- package/website/node_modules/css-selector-tokenizer/lib/parseValues.js +167 -0
- package/website/node_modules/css-selector-tokenizer/lib/stringify.js +62 -0
- package/website/node_modules/css-selector-tokenizer/lib/stringifyValues.js +62 -0
- package/website/node_modules/css-selector-tokenizer/lib/uni-regexp.js +6 -0
- package/website/node_modules/css-selector-tokenizer/package.json +48 -0
- package/website/node_modules/cssesc/LICENSE-MIT.txt +20 -0
- package/website/node_modules/cssesc/README.md +201 -0
- package/website/node_modules/cssesc/bin/cssesc +116 -0
- package/website/node_modules/cssesc/cssesc.js +110 -0
- package/website/node_modules/cssesc/man/cssesc.1 +70 -0
- package/website/node_modules/cssesc/package.json +51 -0
- package/website/node_modules/daisyui/LICENSE +21 -0
- package/website/node_modules/daisyui/README.md +231 -0
- package/website/node_modules/daisyui/dist/base.js +1 -0
- package/website/node_modules/daisyui/dist/full.css +50393 -0
- package/website/node_modules/daisyui/dist/styled.css +4874 -0
- package/website/node_modules/daisyui/dist/styled.js +1 -0
- package/website/node_modules/daisyui/dist/styled.rtl.js +1 -0
- package/website/node_modules/daisyui/dist/themes.css +1151 -0
- package/website/node_modules/daisyui/dist/unstyled.css +1212 -0
- package/website/node_modules/daisyui/dist/unstyled.js +1 -0
- package/website/node_modules/daisyui/dist/unstyled.rtl.js +1 -0
- package/website/node_modules/daisyui/dist/utilities-styled.js +1 -0
- package/website/node_modules/daisyui/dist/utilities-unstyled.js +1 -0
- package/website/node_modules/daisyui/dist/utilities.js +1 -0
- package/website/node_modules/daisyui/package.json +109 -0
- package/website/node_modules/daisyui/src/index.d.ts +111 -0
- package/website/node_modules/daisyui/src/index.js +186 -0
- package/website/node_modules/daisyui/src/lib/addPrefix.js +104 -0
- package/website/node_modules/daisyui/src/lib/responsiveRegex.js +45 -0
- package/website/node_modules/daisyui/src/theming/colorNames.js +34 -0
- package/website/node_modules/daisyui/src/theming/functions.js +269 -0
- package/website/node_modules/daisyui/src/theming/index.js +39 -0
- package/website/node_modules/daisyui/src/theming/themeDefaults.js +45 -0
- package/website/node_modules/daisyui/src/theming/themes.d.ts +5 -0
- package/website/node_modules/daisyui/src/theming/themes.js +435 -0
- package/website/node_modules/didyoumean/LICENSE +14 -0
- package/website/node_modules/didyoumean/README.md +134 -0
- package/website/node_modules/didyoumean/didYouMean-1.2.1.js +274 -0
- package/website/node_modules/didyoumean/didYouMean-1.2.1.min.js +17 -0
- package/website/node_modules/didyoumean/package.json +27 -0
- package/website/node_modules/dlv/README.md +76 -0
- package/website/node_modules/dlv/dist/dlv.es.js +2 -0
- package/website/node_modules/dlv/dist/dlv.es.js.map +1 -0
- package/website/node_modules/dlv/dist/dlv.js +2 -0
- package/website/node_modules/dlv/dist/dlv.js.map +1 -0
- package/website/node_modules/dlv/dist/dlv.umd.js +2 -0
- package/website/node_modules/dlv/dist/dlv.umd.js.map +1 -0
- package/website/node_modules/dlv/index.js +7 -0
- package/website/node_modules/dlv/package.json +30 -0
- package/website/node_modules/fast-glob/LICENSE +21 -0
- package/website/node_modules/fast-glob/README.md +830 -0
- package/website/node_modules/fast-glob/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/website/node_modules/fast-glob/node_modules/glob-parent/LICENSE +15 -0
- package/website/node_modules/fast-glob/node_modules/glob-parent/README.md +137 -0
- package/website/node_modules/fast-glob/node_modules/glob-parent/index.js +42 -0
- package/website/node_modules/fast-glob/node_modules/glob-parent/package.json +48 -0
- package/website/node_modules/fast-glob/out/index.d.ts +40 -0
- package/website/node_modules/fast-glob/out/index.js +102 -0
- package/website/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
- package/website/node_modules/fast-glob/out/managers/tasks.js +110 -0
- package/website/node_modules/fast-glob/out/providers/async.d.ts +9 -0
- package/website/node_modules/fast-glob/out/providers/async.js +23 -0
- package/website/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
- package/website/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
- package/website/node_modules/fast-glob/out/providers/filters/entry.d.ts +16 -0
- package/website/node_modules/fast-glob/out/providers/filters/entry.js +63 -0
- package/website/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
- package/website/node_modules/fast-glob/out/providers/filters/error.js +15 -0
- package/website/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
- package/website/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
- package/website/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
- package/website/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
- package/website/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
- package/website/node_modules/fast-glob/out/providers/provider.js +48 -0
- package/website/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
- package/website/node_modules/fast-glob/out/providers/stream.js +31 -0
- package/website/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
- package/website/node_modules/fast-glob/out/providers/sync.js +23 -0
- package/website/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
- package/website/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
- package/website/node_modules/fast-glob/out/readers/async.d.ts +10 -0
- package/website/node_modules/fast-glob/out/readers/async.js +35 -0
- package/website/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
- package/website/node_modules/fast-glob/out/readers/reader.js +33 -0
- package/website/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
- package/website/node_modules/fast-glob/out/readers/stream.js +55 -0
- package/website/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
- package/website/node_modules/fast-glob/out/readers/sync.js +43 -0
- package/website/node_modules/fast-glob/out/settings.d.ts +164 -0
- package/website/node_modules/fast-glob/out/settings.js +59 -0
- package/website/node_modules/fast-glob/out/types/index.d.ts +31 -0
- package/website/node_modules/fast-glob/out/types/index.js +2 -0
- package/website/node_modules/fast-glob/out/utils/array.d.ts +2 -0
- package/website/node_modules/fast-glob/out/utils/array.js +22 -0
- package/website/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
- package/website/node_modules/fast-glob/out/utils/errno.js +7 -0
- package/website/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
- package/website/node_modules/fast-glob/out/utils/fs.js +19 -0
- package/website/node_modules/fast-glob/out/utils/index.d.ts +8 -0
- package/website/node_modules/fast-glob/out/utils/index.js +17 -0
- package/website/node_modules/fast-glob/out/utils/path.d.ts +13 -0
- package/website/node_modules/fast-glob/out/utils/path.js +68 -0
- package/website/node_modules/fast-glob/out/utils/pattern.d.ts +47 -0
- package/website/node_modules/fast-glob/out/utils/pattern.js +188 -0
- package/website/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
- package/website/node_modules/fast-glob/out/utils/stream.js +17 -0
- package/website/node_modules/fast-glob/out/utils/string.d.ts +2 -0
- package/website/node_modules/fast-glob/out/utils/string.js +11 -0
- package/website/node_modules/fast-glob/package.json +81 -0
- package/website/node_modules/fastparse/LICENSE +7 -0
- package/website/node_modules/fastparse/README.md +118 -0
- package/website/node_modules/fastparse/lib/Parser.js +108 -0
- package/website/node_modules/fastparse/package.json +39 -0
- package/website/node_modules/fastq/.github/dependabot.yml +11 -0
- package/website/node_modules/fastq/.github/workflows/ci.yml +50 -0
- package/website/node_modules/fastq/LICENSE +13 -0
- package/website/node_modules/fastq/README.md +309 -0
- package/website/node_modules/fastq/bench.js +66 -0
- package/website/node_modules/fastq/example.js +14 -0
- package/website/node_modules/fastq/example.mjs +11 -0
- package/website/node_modules/fastq/index.d.ts +37 -0
- package/website/node_modules/fastq/package.json +52 -0
- package/website/node_modules/fastq/queue.js +289 -0
- package/website/node_modules/fastq/test/example.ts +81 -0
- package/website/node_modules/fastq/test/promise.js +248 -0
- package/website/node_modules/fastq/test/test.js +566 -0
- package/website/node_modules/fastq/test/tsconfig.json +11 -0
- package/website/node_modules/fill-range/LICENSE +21 -0
- package/website/node_modules/fill-range/README.md +237 -0
- package/website/node_modules/fill-range/index.js +249 -0
- package/website/node_modules/fill-range/package.json +69 -0
- package/website/node_modules/fs.realpath/LICENSE +43 -0
- package/website/node_modules/fs.realpath/README.md +33 -0
- package/website/node_modules/fs.realpath/index.js +66 -0
- package/website/node_modules/fs.realpath/old.js +303 -0
- package/website/node_modules/fs.realpath/package.json +26 -0
- package/website/node_modules/function-bind/.editorconfig +20 -0
- package/website/node_modules/function-bind/.eslintrc +15 -0
- package/website/node_modules/function-bind/.jscs.json +176 -0
- package/website/node_modules/function-bind/.travis.yml +168 -0
- package/website/node_modules/function-bind/LICENSE +20 -0
- package/website/node_modules/function-bind/README.md +48 -0
- package/website/node_modules/function-bind/implementation.js +52 -0
- package/website/node_modules/function-bind/index.js +5 -0
- package/website/node_modules/function-bind/package.json +63 -0
- package/website/node_modules/function-bind/test/.eslintrc +9 -0
- package/website/node_modules/function-bind/test/index.js +252 -0
- package/website/node_modules/glob/LICENSE +21 -0
- package/website/node_modules/glob/README.md +375 -0
- package/website/node_modules/glob/changelog.md +67 -0
- package/website/node_modules/glob/common.js +240 -0
- package/website/node_modules/glob/glob.js +790 -0
- package/website/node_modules/glob/package.json +46 -0
- package/website/node_modules/glob/sync.js +486 -0
- package/website/node_modules/glob-parent/LICENSE +15 -0
- package/website/node_modules/glob-parent/README.md +134 -0
- package/website/node_modules/glob-parent/index.js +75 -0
- package/website/node_modules/glob-parent/package.json +54 -0
- package/website/node_modules/has/LICENSE-MIT +22 -0
- package/website/node_modules/has/README.md +18 -0
- package/website/node_modules/has/package.json +48 -0
- package/website/node_modules/has/src/index.js +5 -0
- package/website/node_modules/has/test/index.js +10 -0
- package/website/node_modules/inflight/LICENSE +15 -0
- package/website/node_modules/inflight/README.md +37 -0
- package/website/node_modules/inflight/inflight.js +54 -0
- package/website/node_modules/inflight/package.json +29 -0
- package/website/node_modules/inherits/LICENSE +16 -0
- package/website/node_modules/inherits/README.md +42 -0
- package/website/node_modules/inherits/inherits.js +9 -0
- package/website/node_modules/inherits/inherits_browser.js +27 -0
- package/website/node_modules/inherits/package.json +29 -0
- package/website/node_modules/is-binary-path/index.d.ts +17 -0
- package/website/node_modules/is-binary-path/index.js +7 -0
- package/website/node_modules/is-binary-path/license +9 -0
- package/website/node_modules/is-binary-path/package.json +40 -0
- package/website/node_modules/is-binary-path/readme.md +34 -0
- package/website/node_modules/is-core-module/.eslintrc +18 -0
- package/website/node_modules/is-core-module/.nycrc +9 -0
- package/website/node_modules/is-core-module/CHANGELOG.md +173 -0
- package/website/node_modules/is-core-module/LICENSE +20 -0
- package/website/node_modules/is-core-module/README.md +40 -0
- package/website/node_modules/is-core-module/core.json +158 -0
- package/website/node_modules/is-core-module/index.js +69 -0
- package/website/node_modules/is-core-module/package.json +73 -0
- package/website/node_modules/is-core-module/test/index.js +133 -0
- package/website/node_modules/is-extglob/LICENSE +21 -0
- package/website/node_modules/is-extglob/README.md +107 -0
- package/website/node_modules/is-extglob/index.js +20 -0
- package/website/node_modules/is-extglob/package.json +69 -0
- package/website/node_modules/is-glob/LICENSE +21 -0
- package/website/node_modules/is-glob/README.md +206 -0
- package/website/node_modules/is-glob/index.js +150 -0
- package/website/node_modules/is-glob/package.json +81 -0
- package/website/node_modules/is-number/LICENSE +21 -0
- package/website/node_modules/is-number/README.md +187 -0
- package/website/node_modules/is-number/index.js +18 -0
- package/website/node_modules/is-number/package.json +82 -0
- package/website/node_modules/jiti/LICENSE +21 -0
- package/website/node_modules/jiti/README.md +161 -0
- package/website/node_modules/jiti/bin/jiti.js +16 -0
- package/website/node_modules/jiti/dist/babel.d.ts +2 -0
- package/website/node_modules/jiti/dist/babel.js +1885 -0
- package/website/node_modules/jiti/dist/jiti.d.ts +19 -0
- package/website/node_modules/jiti/dist/jiti.js +1 -0
- package/website/node_modules/jiti/dist/plugins/babel-plugin-transform-import-meta.d.ts +4 -0
- package/website/node_modules/jiti/dist/plugins/import-meta-env.d.ts +5 -0
- package/website/node_modules/jiti/dist/types.d.ts +31 -0
- package/website/node_modules/jiti/dist/utils.d.ts +8 -0
- package/website/node_modules/jiti/lib/index.js +15 -0
- package/website/node_modules/jiti/package.json +81 -0
- package/website/node_modules/jiti/register.js +3 -0
- package/website/node_modules/lilconfig/LICENSE +21 -0
- package/website/node_modules/lilconfig/dist/index.d.ts +38 -0
- package/website/node_modules/lilconfig/dist/index.js +251 -0
- package/website/node_modules/lilconfig/package.json +48 -0
- package/website/node_modules/lilconfig/readme.md +118 -0
- package/website/node_modules/lines-and-columns/LICENSE +21 -0
- package/website/node_modules/lines-and-columns/README.md +33 -0
- package/website/node_modules/lines-and-columns/build/index.d.ts +13 -0
- package/website/node_modules/lines-and-columns/build/index.js +62 -0
- package/website/node_modules/lines-and-columns/package.json +49 -0
- package/website/node_modules/merge2/LICENSE +21 -0
- package/website/node_modules/merge2/README.md +144 -0
- package/website/node_modules/merge2/index.js +144 -0
- package/website/node_modules/merge2/package.json +43 -0
- package/website/node_modules/micromatch/LICENSE +21 -0
- package/website/node_modules/micromatch/README.md +1011 -0
- package/website/node_modules/micromatch/index.js +467 -0
- package/website/node_modules/micromatch/package.json +119 -0
- package/website/node_modules/minimatch/LICENSE +15 -0
- package/website/node_modules/minimatch/README.md +230 -0
- package/website/node_modules/minimatch/minimatch.js +947 -0
- package/website/node_modules/minimatch/package.json +33 -0
- package/website/node_modules/mz/HISTORY.md +66 -0
- package/website/node_modules/mz/LICENSE +22 -0
- package/website/node_modules/mz/README.md +106 -0
- package/website/node_modules/mz/child_process.js +8 -0
- package/website/node_modules/mz/crypto.js +9 -0
- package/website/node_modules/mz/dns.js +16 -0
- package/website/node_modules/mz/fs.js +62 -0
- package/website/node_modules/mz/index.js +8 -0
- package/website/node_modules/mz/package.json +44 -0
- package/website/node_modules/mz/readline.js +64 -0
- package/website/node_modules/mz/zlib.js +13 -0
- package/website/node_modules/nanoid/LICENSE +20 -0
- package/website/node_modules/nanoid/README.md +39 -0
- package/website/node_modules/nanoid/async/index.browser.cjs +34 -0
- package/website/node_modules/nanoid/async/index.browser.js +34 -0
- package/website/node_modules/nanoid/async/index.cjs +35 -0
- package/website/node_modules/nanoid/async/index.d.ts +56 -0
- package/website/node_modules/nanoid/async/index.js +35 -0
- package/website/node_modules/nanoid/async/index.native.js +26 -0
- package/website/node_modules/nanoid/async/package.json +12 -0
- package/website/node_modules/nanoid/bin/nanoid.cjs +55 -0
- package/website/node_modules/nanoid/index.browser.cjs +34 -0
- package/website/node_modules/nanoid/index.browser.js +34 -0
- package/website/node_modules/nanoid/index.cjs +45 -0
- package/website/node_modules/nanoid/index.d.ts +91 -0
- package/website/node_modules/nanoid/index.js +45 -0
- package/website/node_modules/nanoid/nanoid.js +1 -0
- package/website/node_modules/nanoid/non-secure/index.cjs +21 -0
- package/website/node_modules/nanoid/non-secure/index.d.ts +33 -0
- package/website/node_modules/nanoid/non-secure/index.js +21 -0
- package/website/node_modules/nanoid/non-secure/package.json +6 -0
- package/website/node_modules/nanoid/package.json +66 -0
- package/website/node_modules/nanoid/url-alphabet/index.cjs +3 -0
- package/website/node_modules/nanoid/url-alphabet/index.js +3 -0
- package/website/node_modules/nanoid/url-alphabet/package.json +6 -0
- package/website/node_modules/normalize-path/LICENSE +21 -0
- package/website/node_modules/normalize-path/README.md +127 -0
- package/website/node_modules/normalize-path/index.js +35 -0
- package/website/node_modules/normalize-path/package.json +77 -0
- package/website/node_modules/object-assign/index.js +90 -0
- package/website/node_modules/object-assign/license +21 -0
- package/website/node_modules/object-assign/package.json +42 -0
- package/website/node_modules/object-assign/readme.md +61 -0
- package/website/node_modules/object-hash/LICENSE +22 -0
- package/website/node_modules/object-hash/dist/object_hash.js +1 -0
- package/website/node_modules/object-hash/index.js +453 -0
- package/website/node_modules/object-hash/package.json +53 -0
- package/website/node_modules/object-hash/readme.markdown +198 -0
- package/website/node_modules/once/LICENSE +15 -0
- package/website/node_modules/once/README.md +79 -0
- package/website/node_modules/once/once.js +42 -0
- package/website/node_modules/once/package.json +33 -0
- package/website/node_modules/path-is-absolute/index.js +20 -0
- package/website/node_modules/path-is-absolute/license +21 -0
- package/website/node_modules/path-is-absolute/package.json +43 -0
- package/website/node_modules/path-is-absolute/readme.md +59 -0
- package/website/node_modules/path-parse/LICENSE +21 -0
- package/website/node_modules/path-parse/README.md +42 -0
- package/website/node_modules/path-parse/index.js +75 -0
- package/website/node_modules/path-parse/package.json +33 -0
- package/website/node_modules/picocolors/LICENSE +15 -0
- package/website/node_modules/picocolors/README.md +21 -0
- package/website/node_modules/picocolors/package.json +25 -0
- package/website/node_modules/picocolors/picocolors.browser.js +4 -0
- package/website/node_modules/picocolors/picocolors.d.ts +5 -0
- package/website/node_modules/picocolors/picocolors.js +58 -0
- package/website/node_modules/picocolors/types.ts +30 -0
- package/website/node_modules/picomatch/CHANGELOG.md +136 -0
- package/website/node_modules/picomatch/LICENSE +21 -0
- package/website/node_modules/picomatch/README.md +708 -0
- package/website/node_modules/picomatch/index.js +3 -0
- package/website/node_modules/picomatch/lib/constants.js +179 -0
- package/website/node_modules/picomatch/lib/parse.js +1091 -0
- package/website/node_modules/picomatch/lib/picomatch.js +342 -0
- package/website/node_modules/picomatch/lib/scan.js +391 -0
- package/website/node_modules/picomatch/lib/utils.js +64 -0
- package/website/node_modules/picomatch/package.json +81 -0
- package/website/node_modules/pify/index.js +68 -0
- package/website/node_modules/pify/license +21 -0
- package/website/node_modules/pify/package.json +48 -0
- package/website/node_modules/pify/readme.md +119 -0
- package/website/node_modules/pirates/LICENSE +21 -0
- package/website/node_modules/pirates/README.md +69 -0
- package/website/node_modules/pirates/index.d.ts +82 -0
- package/website/node_modules/pirates/lib/index.js +139 -0
- package/website/node_modules/pirates/package.json +74 -0
- package/website/node_modules/postcss/LICENSE +20 -0
- package/website/node_modules/postcss/README.md +28 -0
- package/website/node_modules/postcss/lib/at-rule.d.ts +115 -0
- package/website/node_modules/postcss/lib/at-rule.js +25 -0
- package/website/node_modules/postcss/lib/comment.d.ts +67 -0
- package/website/node_modules/postcss/lib/comment.js +13 -0
- package/website/node_modules/postcss/lib/container.d.ts +452 -0
- package/website/node_modules/postcss/lib/container.js +439 -0
- package/website/node_modules/postcss/lib/css-syntax-error.d.ts +248 -0
- package/website/node_modules/postcss/lib/css-syntax-error.js +100 -0
- package/website/node_modules/postcss/lib/declaration.d.ts +148 -0
- package/website/node_modules/postcss/lib/declaration.js +24 -0
- package/website/node_modules/postcss/lib/document.d.ts +68 -0
- package/website/node_modules/postcss/lib/document.js +33 -0
- package/website/node_modules/postcss/lib/fromJSON.d.ts +9 -0
- package/website/node_modules/postcss/lib/fromJSON.js +54 -0
- package/website/node_modules/postcss/lib/input.d.ts +194 -0
- package/website/node_modules/postcss/lib/input.js +248 -0
- package/website/node_modules/postcss/lib/lazy-result.d.ts +190 -0
- package/website/node_modules/postcss/lib/lazy-result.js +550 -0
- package/website/node_modules/postcss/lib/list.d.ts +57 -0
- package/website/node_modules/postcss/lib/list.js +58 -0
- package/website/node_modules/postcss/lib/map-generator.js +359 -0
- package/website/node_modules/postcss/lib/no-work-result.d.ts +46 -0
- package/website/node_modules/postcss/lib/no-work-result.js +135 -0
- package/website/node_modules/postcss/lib/node.d.ts +536 -0
- package/website/node_modules/postcss/lib/node.js +381 -0
- package/website/node_modules/postcss/lib/parse.d.ts +9 -0
- package/website/node_modules/postcss/lib/parse.js +42 -0
- package/website/node_modules/postcss/lib/parser.js +610 -0
- package/website/node_modules/postcss/lib/postcss.d.mts +72 -0
- package/website/node_modules/postcss/lib/postcss.d.ts +441 -0
- package/website/node_modules/postcss/lib/postcss.js +101 -0
- package/website/node_modules/postcss/lib/postcss.mjs +30 -0
- package/website/node_modules/postcss/lib/previous-map.d.ts +81 -0
- package/website/node_modules/postcss/lib/previous-map.js +142 -0
- package/website/node_modules/postcss/lib/processor.d.ts +115 -0
- package/website/node_modules/postcss/lib/processor.js +67 -0
- package/website/node_modules/postcss/lib/result.d.ts +206 -0
- package/website/node_modules/postcss/lib/result.js +42 -0
- package/website/node_modules/postcss/lib/root.d.ts +86 -0
- package/website/node_modules/postcss/lib/root.js +61 -0
- package/website/node_modules/postcss/lib/rule.d.ts +113 -0
- package/website/node_modules/postcss/lib/rule.js +27 -0
- package/website/node_modules/postcss/lib/stringifier.d.ts +46 -0
- package/website/node_modules/postcss/lib/stringifier.js +353 -0
- package/website/node_modules/postcss/lib/stringify.d.ts +9 -0
- package/website/node_modules/postcss/lib/stringify.js +11 -0
- package/website/node_modules/postcss/lib/symbols.js +5 -0
- package/website/node_modules/postcss/lib/terminal-highlight.js +70 -0
- package/website/node_modules/postcss/lib/tokenize.js +266 -0
- package/website/node_modules/postcss/lib/warn-once.js +13 -0
- package/website/node_modules/postcss/lib/warning.d.ts +147 -0
- package/website/node_modules/postcss/lib/warning.js +37 -0
- package/website/node_modules/postcss/package.json +88 -0
- package/website/node_modules/postcss-import/LICENSE +20 -0
- package/website/node_modules/postcss-import/README.md +244 -0
- package/website/node_modules/postcss-import/index.js +420 -0
- package/website/node_modules/postcss-import/lib/assign-layer-names.js +17 -0
- package/website/node_modules/postcss-import/lib/data-url.js +17 -0
- package/website/node_modules/postcss-import/lib/join-layer.js +9 -0
- package/website/node_modules/postcss-import/lib/join-media.js +28 -0
- package/website/node_modules/postcss-import/lib/load-content.js +12 -0
- package/website/node_modules/postcss-import/lib/parse-statements.js +172 -0
- package/website/node_modules/postcss-import/lib/process-content.js +59 -0
- package/website/node_modules/postcss-import/lib/resolve-id.js +42 -0
- package/website/node_modules/postcss-import/package.json +65 -0
- package/website/node_modules/postcss-js/LICENSE +20 -0
- package/website/node_modules/postcss-js/README.md +22 -0
- package/website/node_modules/postcss-js/async.js +15 -0
- package/website/node_modules/postcss-js/index.js +11 -0
- package/website/node_modules/postcss-js/index.mjs +8 -0
- package/website/node_modules/postcss-js/objectifier.js +85 -0
- package/website/node_modules/postcss-js/package.json +42 -0
- package/website/node_modules/postcss-js/parser.js +104 -0
- package/website/node_modules/postcss-js/process-result.js +11 -0
- package/website/node_modules/postcss-js/sync.js +12 -0
- package/website/node_modules/postcss-load-config/LICENSE +20 -0
- package/website/node_modules/postcss-load-config/README.md +491 -0
- package/website/node_modules/postcss-load-config/package.json +48 -0
- package/website/node_modules/postcss-load-config/src/index.d.ts +65 -0
- package/website/node_modules/postcss-load-config/src/index.js +179 -0
- package/website/node_modules/postcss-load-config/src/options.js +47 -0
- package/website/node_modules/postcss-load-config/src/plugins.js +85 -0
- package/website/node_modules/postcss-load-config/src/req.js +10 -0
- package/website/node_modules/postcss-nested/LICENSE +20 -0
- package/website/node_modules/postcss-nested/README.md +86 -0
- package/website/node_modules/postcss-nested/index.d.ts +41 -0
- package/website/node_modules/postcss-nested/index.js +361 -0
- package/website/node_modules/postcss-nested/package.json +28 -0
- package/website/node_modules/postcss-selector-parser/API.md +872 -0
- package/website/node_modules/postcss-selector-parser/CHANGELOG.md +525 -0
- package/website/node_modules/postcss-selector-parser/LICENSE-MIT +22 -0
- package/website/node_modules/postcss-selector-parser/README.md +49 -0
- package/website/node_modules/postcss-selector-parser/dist/index.js +17 -0
- package/website/node_modules/postcss-selector-parser/dist/parser.js +1012 -0
- package/website/node_modules/postcss-selector-parser/dist/processor.js +170 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/attribute.js +448 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/className.js +50 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/combinator.js +21 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/comment.js +21 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/constructors.js +65 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/container.js +308 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/guards.js +58 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/id.js +25 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/index.js +21 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/namespace.js +80 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/nesting.js +22 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/node.js +192 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/pseudo.js +26 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/root.js +44 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/selector.js +21 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/string.js +21 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/tag.js +21 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/types.js +28 -0
- package/website/node_modules/postcss-selector-parser/dist/selectors/universal.js +22 -0
- package/website/node_modules/postcss-selector-parser/dist/sortAscending.js +11 -0
- package/website/node_modules/postcss-selector-parser/dist/tokenTypes.js +70 -0
- package/website/node_modules/postcss-selector-parser/dist/tokenize.js +239 -0
- package/website/node_modules/postcss-selector-parser/dist/util/ensureObject.js +17 -0
- package/website/node_modules/postcss-selector-parser/dist/util/getProp.js +18 -0
- package/website/node_modules/postcss-selector-parser/dist/util/index.js +13 -0
- package/website/node_modules/postcss-selector-parser/dist/util/stripComments.js +21 -0
- package/website/node_modules/postcss-selector-parser/dist/util/unesc.js +76 -0
- package/website/node_modules/postcss-selector-parser/package.json +79 -0
- package/website/node_modules/postcss-selector-parser/postcss-selector-parser.d.ts +555 -0
- package/website/node_modules/postcss-value-parser/LICENSE +22 -0
- package/website/node_modules/postcss-value-parser/README.md +263 -0
- package/website/node_modules/postcss-value-parser/lib/index.d.ts +177 -0
- package/website/node_modules/postcss-value-parser/lib/index.js +28 -0
- package/website/node_modules/postcss-value-parser/lib/parse.js +321 -0
- package/website/node_modules/postcss-value-parser/lib/stringify.js +48 -0
- package/website/node_modules/postcss-value-parser/lib/unit.js +120 -0
- package/website/node_modules/postcss-value-parser/lib/walk.js +22 -0
- package/website/node_modules/postcss-value-parser/package.json +58 -0
- package/website/node_modules/queue-microtask/LICENSE +20 -0
- package/website/node_modules/queue-microtask/README.md +90 -0
- package/website/node_modules/queue-microtask/index.d.ts +2 -0
- package/website/node_modules/queue-microtask/index.js +9 -0
- package/website/node_modules/queue-microtask/package.json +55 -0
- package/website/node_modules/read-cache/LICENSE +20 -0
- package/website/node_modules/read-cache/README.md +46 -0
- package/website/node_modules/read-cache/index.js +78 -0
- package/website/node_modules/read-cache/package.json +34 -0
- package/website/node_modules/readdirp/LICENSE +21 -0
- package/website/node_modules/readdirp/README.md +122 -0
- package/website/node_modules/readdirp/index.d.ts +43 -0
- package/website/node_modules/readdirp/index.js +287 -0
- package/website/node_modules/readdirp/package.json +122 -0
- package/website/node_modules/resolve/.editorconfig +37 -0
- package/website/node_modules/resolve/.eslintrc +65 -0
- package/website/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/website/node_modules/resolve/LICENSE +21 -0
- package/website/node_modules/resolve/SECURITY.md +3 -0
- package/website/node_modules/resolve/async.js +3 -0
- package/website/node_modules/resolve/bin/resolve +50 -0
- package/website/node_modules/resolve/example/async.js +5 -0
- package/website/node_modules/resolve/example/sync.js +3 -0
- package/website/node_modules/resolve/index.js +6 -0
- package/website/node_modules/resolve/lib/async.js +329 -0
- package/website/node_modules/resolve/lib/caller.js +8 -0
- package/website/node_modules/resolve/lib/core.js +12 -0
- package/website/node_modules/resolve/lib/core.json +158 -0
- package/website/node_modules/resolve/lib/homedir.js +24 -0
- package/website/node_modules/resolve/lib/is-core.js +5 -0
- package/website/node_modules/resolve/lib/node-modules-paths.js +42 -0
- package/website/node_modules/resolve/lib/normalize-options.js +10 -0
- package/website/node_modules/resolve/lib/sync.js +208 -0
- package/website/node_modules/resolve/package.json +71 -0
- package/website/node_modules/resolve/readme.markdown +301 -0
- package/website/node_modules/resolve/sync.js +3 -0
- package/website/node_modules/resolve/test/core.js +88 -0
- package/website/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- package/website/node_modules/resolve/test/dotdot/index.js +1 -0
- package/website/node_modules/resolve/test/dotdot.js +29 -0
- package/website/node_modules/resolve/test/faulty_basedir.js +29 -0
- package/website/node_modules/resolve/test/filter.js +34 -0
- package/website/node_modules/resolve/test/filter_sync.js +33 -0
- package/website/node_modules/resolve/test/home_paths.js +127 -0
- package/website/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/website/node_modules/resolve/test/mock.js +315 -0
- package/website/node_modules/resolve/test/mock_sync.js +214 -0
- package/website/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- package/website/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- package/website/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- package/website/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- package/website/node_modules/resolve/test/module_dir.js +56 -0
- package/website/node_modules/resolve/test/node-modules-paths.js +143 -0
- package/website/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- package/website/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- package/website/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- package/website/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- package/website/node_modules/resolve/test/node_path.js +70 -0
- package/website/node_modules/resolve/test/nonstring.js +9 -0
- package/website/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/website/node_modules/resolve/test/pathfilter.js +75 -0
- package/website/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- package/website/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- package/website/node_modules/resolve/test/precedence/aaa.js +1 -0
- package/website/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- package/website/node_modules/resolve/test/precedence/bbb.js +1 -0
- package/website/node_modules/resolve/test/precedence.js +23 -0
- package/website/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/website/node_modules/resolve/test/resolver/baz/package.json +4 -0
- package/website/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- package/website/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/website/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/website/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
- package/website/node_modules/resolve/test/resolver/cup.coffee +1 -0
- package/website/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
- package/website/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
- package/website/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
- package/website/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
- package/website/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/website/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- package/website/node_modules/resolve/test/resolver/foo.js +1 -0
- package/website/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- package/website/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- package/website/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
- package/website/node_modules/resolve/test/resolver/malformed_package_json/index.js +0 -0
- package/website/node_modules/resolve/test/resolver/malformed_package_json/package.json +1 -0
- package/website/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/website/node_modules/resolve/test/resolver/mug.js +0 -0
- package/website/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
- package/website/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
- package/website/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
- package/website/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
- package/website/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/website/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
- package/website/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
- package/website/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
- package/website/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
- package/website/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/website/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/website/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- package/website/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
- package/website/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
- package/website/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/website/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/website/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
- package/website/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
- package/website/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
- package/website/node_modules/resolve/test/resolver.js +595 -0
- package/website/node_modules/resolve/test/resolver_sync.js +726 -0
- package/website/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/website/node_modules/resolve/test/shadowed_core.js +54 -0
- package/website/node_modules/resolve/test/subdirs.js +13 -0
- package/website/node_modules/resolve/test/symlinks.js +176 -0
- package/website/node_modules/reusify/.coveralls.yml +1 -0
- package/website/node_modules/reusify/.travis.yml +28 -0
- package/website/node_modules/reusify/LICENSE +22 -0
- package/website/node_modules/reusify/README.md +145 -0
- package/website/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
- package/website/node_modules/reusify/benchmarks/fib.js +13 -0
- package/website/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
- package/website/node_modules/reusify/package.json +45 -0
- package/website/node_modules/reusify/reusify.js +33 -0
- package/website/node_modules/reusify/test.js +66 -0
- package/website/node_modules/run-parallel/LICENSE +20 -0
- package/website/node_modules/run-parallel/README.md +85 -0
- package/website/node_modules/run-parallel/index.js +51 -0
- package/website/node_modules/run-parallel/package.json +58 -0
- package/website/node_modules/source-map-js/CHANGELOG.md +320 -0
- package/website/node_modules/source-map-js/LICENSE +28 -0
- package/website/node_modules/source-map-js/README.md +758 -0
- package/website/node_modules/source-map-js/lib/array-set.js +121 -0
- package/website/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/website/node_modules/source-map-js/lib/base64.js +67 -0
- package/website/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/website/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/website/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/website/node_modules/source-map-js/lib/source-map-consumer.js +1184 -0
- package/website/node_modules/source-map-js/lib/source-map-generator.js +425 -0
- package/website/node_modules/source-map-js/lib/source-node.js +413 -0
- package/website/node_modules/source-map-js/lib/util.js +594 -0
- package/website/node_modules/source-map-js/package.json +71 -0
- package/website/node_modules/source-map-js/source-map.d.ts +115 -0
- package/website/node_modules/source-map-js/source-map.js +8 -0
- package/website/node_modules/sucrase/LICENSE +21 -0
- package/website/node_modules/sucrase/README.md +295 -0
- package/website/node_modules/sucrase/bin/sucrase +3 -0
- package/website/node_modules/sucrase/bin/sucrase-node +18 -0
- package/website/node_modules/sucrase/dist/CJSImportProcessor.js +456 -0
- package/website/node_modules/sucrase/dist/HelperManager.js +176 -0
- package/website/node_modules/sucrase/dist/NameManager.js +27 -0
- package/website/node_modules/sucrase/dist/Options-gen-types.js +42 -0
- package/website/node_modules/sucrase/dist/Options.js +101 -0
- package/website/node_modules/sucrase/dist/TokenProcessor.js +357 -0
- package/website/node_modules/sucrase/dist/cli.js +320 -0
- package/website/node_modules/sucrase/dist/computeSourceMap.js +89 -0
- package/website/node_modules/sucrase/dist/esm/CJSImportProcessor.js +456 -0
- package/website/node_modules/sucrase/dist/esm/HelperManager.js +176 -0
- package/website/node_modules/sucrase/dist/esm/NameManager.js +27 -0
- package/website/node_modules/sucrase/dist/esm/Options-gen-types.js +42 -0
- package/website/node_modules/sucrase/dist/esm/Options.js +101 -0
- package/website/node_modules/sucrase/dist/esm/TokenProcessor.js +357 -0
- package/website/node_modules/sucrase/dist/esm/cli.js +320 -0
- package/website/node_modules/sucrase/dist/esm/computeSourceMap.js +89 -0
- package/website/node_modules/sucrase/dist/esm/identifyShadowedGlobals.js +98 -0
- package/website/node_modules/sucrase/dist/esm/index.js +133 -0
- package/website/node_modules/sucrase/dist/esm/parser/index.js +31 -0
- package/website/node_modules/sucrase/dist/esm/parser/plugins/flow.js +1105 -0
- package/website/node_modules/sucrase/dist/esm/parser/plugins/jsx/index.js +367 -0
- package/website/node_modules/sucrase/dist/esm/parser/plugins/jsx/xhtml.js +256 -0
- package/website/node_modules/sucrase/dist/esm/parser/plugins/types.js +37 -0
- package/website/node_modules/sucrase/dist/esm/parser/plugins/typescript.js +1632 -0
- package/website/node_modules/sucrase/dist/esm/parser/tokenizer/index.js +1004 -0
- package/website/node_modules/sucrase/dist/esm/parser/tokenizer/keywords.js +43 -0
- package/website/node_modules/sucrase/dist/esm/parser/tokenizer/readWord.js +64 -0
- package/website/node_modules/sucrase/dist/esm/parser/tokenizer/readWordTree.js +671 -0
- package/website/node_modules/sucrase/dist/esm/parser/tokenizer/state.js +106 -0
- package/website/node_modules/sucrase/dist/esm/parser/tokenizer/types.js +361 -0
- package/website/node_modules/sucrase/dist/esm/parser/traverser/base.js +60 -0
- package/website/node_modules/sucrase/dist/esm/parser/traverser/expression.js +1022 -0
- package/website/node_modules/sucrase/dist/esm/parser/traverser/index.js +18 -0
- package/website/node_modules/sucrase/dist/esm/parser/traverser/lval.js +159 -0
- package/website/node_modules/sucrase/dist/esm/parser/traverser/statement.js +1332 -0
- package/website/node_modules/sucrase/dist/esm/parser/traverser/util.js +104 -0
- package/website/node_modules/sucrase/dist/esm/parser/util/charcodes.js +115 -0
- package/website/node_modules/sucrase/dist/esm/parser/util/identifier.js +34 -0
- package/website/node_modules/sucrase/dist/esm/parser/util/whitespace.js +33 -0
- package/website/node_modules/sucrase/dist/esm/register.js +88 -0
- package/website/node_modules/sucrase/dist/esm/transformers/CJSImportTransformer.js +916 -0
- package/website/node_modules/sucrase/dist/esm/transformers/ESMImportTransformer.js +415 -0
- package/website/node_modules/sucrase/dist/esm/transformers/FlowTransformer.js +182 -0
- package/website/node_modules/sucrase/dist/esm/transformers/JSXTransformer.js +733 -0
- package/website/node_modules/sucrase/dist/esm/transformers/JestHoistTransformer.js +111 -0
- package/website/node_modules/sucrase/dist/esm/transformers/NumericSeparatorTransformer.js +20 -0
- package/website/node_modules/sucrase/dist/esm/transformers/OptionalCatchBindingTransformer.js +19 -0
- package/website/node_modules/sucrase/dist/esm/transformers/OptionalChainingNullishTransformer.js +155 -0
- package/website/node_modules/sucrase/dist/esm/transformers/ReactDisplayNameTransformer.js +160 -0
- package/website/node_modules/sucrase/dist/esm/transformers/ReactHotLoaderTransformer.js +69 -0
- package/website/node_modules/sucrase/dist/esm/transformers/RootTransformer.js +462 -0
- package/website/node_modules/sucrase/dist/esm/transformers/Transformer.js +16 -0
- package/website/node_modules/sucrase/dist/esm/transformers/TypeScriptTransformer.js +279 -0
- package/website/node_modules/sucrase/dist/esm/util/elideImportEquals.js +29 -0
- package/website/node_modules/sucrase/dist/esm/util/formatTokens.js +74 -0
- package/website/node_modules/sucrase/dist/esm/util/getClassInfo.js +352 -0
- package/website/node_modules/sucrase/dist/esm/util/getDeclarationInfo.js +40 -0
- package/website/node_modules/sucrase/dist/esm/util/getIdentifierNames.js +15 -0
- package/website/node_modules/sucrase/dist/esm/util/getImportExportSpecifierInfo.js +92 -0
- package/website/node_modules/sucrase/dist/esm/util/getJSXPragmaInfo.js +22 -0
- package/website/node_modules/sucrase/dist/esm/util/getNonTypeIdentifiers.js +43 -0
- package/website/node_modules/sucrase/dist/esm/util/getTSImportedNames.js +84 -0
- package/website/node_modules/sucrase/dist/esm/util/isAsyncOperation.js +38 -0
- package/website/node_modules/sucrase/dist/esm/util/isExportFrom.js +18 -0
- package/website/node_modules/sucrase/dist/esm/util/isIdentifier.js +81 -0
- package/website/node_modules/sucrase/dist/esm/util/removeMaybeImportAttributes.js +22 -0
- package/website/node_modules/sucrase/dist/esm/util/shouldElideDefaultExport.js +38 -0
- package/website/node_modules/sucrase/dist/identifyShadowedGlobals.js +98 -0
- package/website/node_modules/sucrase/dist/index.js +133 -0
- package/website/node_modules/sucrase/dist/parser/index.js +31 -0
- package/website/node_modules/sucrase/dist/parser/plugins/flow.js +1105 -0
- package/website/node_modules/sucrase/dist/parser/plugins/jsx/index.js +367 -0
- package/website/node_modules/sucrase/dist/parser/plugins/jsx/xhtml.js +256 -0
- package/website/node_modules/sucrase/dist/parser/plugins/types.js +37 -0
- package/website/node_modules/sucrase/dist/parser/plugins/typescript.js +1632 -0
- package/website/node_modules/sucrase/dist/parser/tokenizer/index.js +1004 -0
- package/website/node_modules/sucrase/dist/parser/tokenizer/keywords.js +43 -0
- package/website/node_modules/sucrase/dist/parser/tokenizer/readWord.js +64 -0
- package/website/node_modules/sucrase/dist/parser/tokenizer/readWordTree.js +671 -0
- package/website/node_modules/sucrase/dist/parser/tokenizer/state.js +106 -0
- package/website/node_modules/sucrase/dist/parser/tokenizer/types.js +361 -0
- package/website/node_modules/sucrase/dist/parser/traverser/base.js +60 -0
- package/website/node_modules/sucrase/dist/parser/traverser/expression.js +1022 -0
- package/website/node_modules/sucrase/dist/parser/traverser/index.js +18 -0
- package/website/node_modules/sucrase/dist/parser/traverser/lval.js +159 -0
- package/website/node_modules/sucrase/dist/parser/traverser/statement.js +1332 -0
- package/website/node_modules/sucrase/dist/parser/traverser/util.js +104 -0
- package/website/node_modules/sucrase/dist/parser/util/charcodes.js +115 -0
- package/website/node_modules/sucrase/dist/parser/util/identifier.js +34 -0
- package/website/node_modules/sucrase/dist/parser/util/whitespace.js +33 -0
- package/website/node_modules/sucrase/dist/register.js +88 -0
- package/website/node_modules/sucrase/dist/transformers/CJSImportTransformer.js +916 -0
- package/website/node_modules/sucrase/dist/transformers/ESMImportTransformer.js +415 -0
- package/website/node_modules/sucrase/dist/transformers/FlowTransformer.js +182 -0
- package/website/node_modules/sucrase/dist/transformers/JSXTransformer.js +733 -0
- package/website/node_modules/sucrase/dist/transformers/JestHoistTransformer.js +111 -0
- package/website/node_modules/sucrase/dist/transformers/NumericSeparatorTransformer.js +20 -0
- package/website/node_modules/sucrase/dist/transformers/OptionalCatchBindingTransformer.js +19 -0
- package/website/node_modules/sucrase/dist/transformers/OptionalChainingNullishTransformer.js +155 -0
- package/website/node_modules/sucrase/dist/transformers/ReactDisplayNameTransformer.js +160 -0
- package/website/node_modules/sucrase/dist/transformers/ReactHotLoaderTransformer.js +69 -0
- package/website/node_modules/sucrase/dist/transformers/RootTransformer.js +462 -0
- package/website/node_modules/sucrase/dist/transformers/Transformer.js +16 -0
- package/website/node_modules/sucrase/dist/transformers/TypeScriptTransformer.js +279 -0
- package/website/node_modules/sucrase/dist/types/CJSImportProcessor.d.ts +67 -0
- package/website/node_modules/sucrase/dist/types/HelperManager.d.ts +15 -0
- package/website/node_modules/sucrase/dist/types/NameManager.d.ts +7 -0
- package/website/node_modules/sucrase/dist/types/Options-gen-types.d.ts +9 -0
- package/website/node_modules/sucrase/dist/types/Options.d.ts +90 -0
- package/website/node_modules/sucrase/dist/types/TokenProcessor.d.ts +87 -0
- package/website/node_modules/sucrase/dist/types/cli.d.ts +1 -0
- package/website/node_modules/sucrase/dist/types/computeSourceMap.d.ts +17 -0
- package/website/node_modules/sucrase/dist/types/identifyShadowedGlobals.d.ts +12 -0
- package/website/node_modules/sucrase/dist/types/index.d.ts +26 -0
- package/website/node_modules/sucrase/dist/types/parser/index.d.ts +8 -0
- package/website/node_modules/sucrase/dist/types/parser/plugins/flow.d.ts +27 -0
- package/website/node_modules/sucrase/dist/types/parser/plugins/jsx/index.d.ts +2 -0
- package/website/node_modules/sucrase/dist/types/parser/plugins/jsx/xhtml.d.ts +2 -0
- package/website/node_modules/sucrase/dist/types/parser/plugins/types.d.ts +5 -0
- package/website/node_modules/sucrase/dist/types/parser/plugins/typescript.d.ts +49 -0
- package/website/node_modules/sucrase/dist/types/parser/tokenizer/index.d.ts +93 -0
- package/website/node_modules/sucrase/dist/types/parser/tokenizer/keywords.d.ts +43 -0
- package/website/node_modules/sucrase/dist/types/parser/tokenizer/readWord.d.ts +7 -0
- package/website/node_modules/sucrase/dist/types/parser/tokenizer/readWordTree.d.ts +1 -0
- package/website/node_modules/sucrase/dist/types/parser/tokenizer/state.d.ts +50 -0
- package/website/node_modules/sucrase/dist/types/parser/tokenizer/types.d.ts +126 -0
- package/website/node_modules/sucrase/dist/types/parser/traverser/base.d.ts +16 -0
- package/website/node_modules/sucrase/dist/types/parser/traverser/expression.d.ts +34 -0
- package/website/node_modules/sucrase/dist/types/parser/traverser/index.d.ts +2 -0
- package/website/node_modules/sucrase/dist/types/parser/traverser/lval.d.ts +9 -0
- package/website/node_modules/sucrase/dist/types/parser/traverser/statement.d.ts +20 -0
- package/website/node_modules/sucrase/dist/types/parser/traverser/util.d.ts +17 -0
- package/website/node_modules/sucrase/dist/types/parser/util/charcodes.d.ts +107 -0
- package/website/node_modules/sucrase/dist/types/parser/util/identifier.d.ts +2 -0
- package/website/node_modules/sucrase/dist/types/parser/util/whitespace.d.ts +3 -0
- package/website/node_modules/sucrase/dist/types/register.d.ts +14 -0
- package/website/node_modules/sucrase/dist/types/transformers/CJSImportTransformer.d.ts +149 -0
- package/website/node_modules/sucrase/dist/types/transformers/ESMImportTransformer.d.ts +52 -0
- package/website/node_modules/sucrase/dist/types/transformers/FlowTransformer.d.ts +79 -0
- package/website/node_modules/sucrase/dist/types/transformers/JSXTransformer.d.ts +144 -0
- package/website/node_modules/sucrase/dist/types/transformers/JestHoistTransformer.d.ts +32 -0
- package/website/node_modules/sucrase/dist/types/transformers/NumericSeparatorTransformer.d.ts +7 -0
- package/website/node_modules/sucrase/dist/types/transformers/OptionalCatchBindingTransformer.d.ts +9 -0
- package/website/node_modules/sucrase/dist/types/transformers/OptionalChainingNullishTransformer.d.ts +36 -0
- package/website/node_modules/sucrase/dist/types/transformers/ReactDisplayNameTransformer.d.ts +29 -0
- package/website/node_modules/sucrase/dist/types/transformers/ReactHotLoaderTransformer.d.ts +12 -0
- package/website/node_modules/sucrase/dist/types/transformers/RootTransformer.d.ts +52 -0
- package/website/node_modules/sucrase/dist/types/transformers/Transformer.d.ts +6 -0
- package/website/node_modules/sucrase/dist/types/transformers/TypeScriptTransformer.d.ts +104 -0
- package/website/node_modules/sucrase/dist/types/util/elideImportEquals.d.ts +2 -0
- package/website/node_modules/sucrase/dist/types/util/formatTokens.d.ts +2 -0
- package/website/node_modules/sucrase/dist/types/util/getClassInfo.d.ts +34 -0
- package/website/node_modules/sucrase/dist/types/util/getDeclarationInfo.d.ts +18 -0
- package/website/node_modules/sucrase/dist/types/util/getIdentifierNames.d.ts +5 -0
- package/website/node_modules/sucrase/dist/types/util/getImportExportSpecifierInfo.d.ts +36 -0
- package/website/node_modules/sucrase/dist/types/util/getJSXPragmaInfo.d.ts +8 -0
- package/website/node_modules/sucrase/dist/types/util/getNonTypeIdentifiers.d.ts +3 -0
- package/website/node_modules/sucrase/dist/types/util/getTSImportedNames.d.ts +9 -0
- package/website/node_modules/sucrase/dist/types/util/isAsyncOperation.d.ts +11 -0
- package/website/node_modules/sucrase/dist/types/util/isExportFrom.d.ts +6 -0
- package/website/node_modules/sucrase/dist/types/util/isIdentifier.d.ts +8 -0
- package/website/node_modules/sucrase/dist/types/util/removeMaybeImportAttributes.d.ts +6 -0
- package/website/node_modules/sucrase/dist/types/util/shouldElideDefaultExport.d.ts +6 -0
- package/website/node_modules/sucrase/dist/util/elideImportEquals.js +29 -0
- package/website/node_modules/sucrase/dist/util/formatTokens.js +74 -0
- package/website/node_modules/sucrase/dist/util/getClassInfo.js +352 -0
- package/website/node_modules/sucrase/dist/util/getDeclarationInfo.js +40 -0
- package/website/node_modules/sucrase/dist/util/getIdentifierNames.js +15 -0
- package/website/node_modules/sucrase/dist/util/getImportExportSpecifierInfo.js +92 -0
- package/website/node_modules/sucrase/dist/util/getJSXPragmaInfo.js +22 -0
- package/website/node_modules/sucrase/dist/util/getNonTypeIdentifiers.js +43 -0
- package/website/node_modules/sucrase/dist/util/getTSImportedNames.js +84 -0
- package/website/node_modules/sucrase/dist/util/isAsyncOperation.js +38 -0
- package/website/node_modules/sucrase/dist/util/isExportFrom.js +18 -0
- package/website/node_modules/sucrase/dist/util/isIdentifier.js +81 -0
- package/website/node_modules/sucrase/dist/util/removeMaybeImportAttributes.js +22 -0
- package/website/node_modules/sucrase/dist/util/shouldElideDefaultExport.js +38 -0
- package/website/node_modules/sucrase/package.json +89 -0
- package/website/node_modules/sucrase/register/index.js +1 -0
- package/website/node_modules/sucrase/register/js.js +1 -0
- package/website/node_modules/sucrase/register/jsx.js +1 -0
- package/website/node_modules/sucrase/register/ts-legacy-module-interop.js +1 -0
- package/website/node_modules/sucrase/register/ts.js +1 -0
- package/website/node_modules/sucrase/register/tsx-legacy-module-interop.js +1 -0
- package/website/node_modules/sucrase/register/tsx.js +1 -0
- package/website/node_modules/sucrase/ts-node-plugin/index.js +83 -0
- package/website/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/website/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/website/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/website/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/website/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/website/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/website/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/website/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/website/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- package/website/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/website/node_modules/tailwindcss/CHANGELOG.md +2474 -0
- package/website/node_modules/tailwindcss/LICENSE +21 -0
- package/website/node_modules/tailwindcss/README.md +41 -0
- package/website/node_modules/tailwindcss/base.css +1 -0
- package/website/node_modules/tailwindcss/colors.d.ts +3 -0
- package/website/node_modules/tailwindcss/colors.js +2 -0
- package/website/node_modules/tailwindcss/components.css +1 -0
- package/website/node_modules/tailwindcss/defaultConfig.d.ts +3 -0
- package/website/node_modules/tailwindcss/defaultConfig.js +2 -0
- package/website/node_modules/tailwindcss/defaultTheme.d.ts +4 -0
- package/website/node_modules/tailwindcss/defaultTheme.js +2 -0
- package/website/node_modules/tailwindcss/lib/cli/build/deps.js +62 -0
- package/website/node_modules/tailwindcss/lib/cli/build/index.js +54 -0
- package/website/node_modules/tailwindcss/lib/cli/build/plugin.js +378 -0
- package/website/node_modules/tailwindcss/lib/cli/build/utils.js +88 -0
- package/website/node_modules/tailwindcss/lib/cli/build/watching.js +182 -0
- package/website/node_modules/tailwindcss/lib/cli/help/index.js +73 -0
- package/website/node_modules/tailwindcss/lib/cli/index.js +230 -0
- package/website/node_modules/tailwindcss/lib/cli/init/index.js +63 -0
- package/website/node_modules/tailwindcss/lib/cli-peer-dependencies.js +36 -0
- package/website/node_modules/tailwindcss/lib/cli.js +7 -0
- package/website/node_modules/tailwindcss/lib/corePluginList.js +187 -0
- package/website/node_modules/tailwindcss/lib/corePlugins.js +4177 -0
- package/website/node_modules/tailwindcss/lib/css/LICENSE +25 -0
- package/website/node_modules/tailwindcss/lib/css/preflight.css +378 -0
- package/website/node_modules/tailwindcss/lib/featureFlags.js +83 -0
- package/website/node_modules/tailwindcss/lib/index.js +2 -0
- package/website/node_modules/tailwindcss/lib/lib/cacheInvalidation.js +92 -0
- package/website/node_modules/tailwindcss/lib/lib/collapseAdjacentRules.js +61 -0
- package/website/node_modules/tailwindcss/lib/lib/collapseDuplicateDeclarations.js +85 -0
- package/website/node_modules/tailwindcss/lib/lib/content.js +181 -0
- package/website/node_modules/tailwindcss/lib/lib/defaultExtractor.js +243 -0
- package/website/node_modules/tailwindcss/lib/lib/detectNesting.js +45 -0
- package/website/node_modules/tailwindcss/lib/lib/evaluateTailwindFunctions.js +238 -0
- package/website/node_modules/tailwindcss/lib/lib/expandApplyAtRules.js +534 -0
- package/website/node_modules/tailwindcss/lib/lib/expandTailwindAtRules.js +274 -0
- package/website/node_modules/tailwindcss/lib/lib/findAtConfigPath.js +46 -0
- package/website/node_modules/tailwindcss/lib/lib/generateRules.js +890 -0
- package/website/node_modules/tailwindcss/lib/lib/getModuleDependencies.js +99 -0
- package/website/node_modules/tailwindcss/lib/lib/load-config.js +42 -0
- package/website/node_modules/tailwindcss/lib/lib/normalizeTailwindDirectives.js +89 -0
- package/website/node_modules/tailwindcss/lib/lib/offsets.js +306 -0
- package/website/node_modules/tailwindcss/lib/lib/partitionApplyAtRules.js +58 -0
- package/website/node_modules/tailwindcss/lib/lib/regex.js +74 -0
- package/website/node_modules/tailwindcss/lib/lib/remap-bitfield.js +89 -0
- package/website/node_modules/tailwindcss/lib/lib/resolveDefaultsAtRules.js +165 -0
- package/website/node_modules/tailwindcss/lib/lib/setupContextUtils.js +1273 -0
- package/website/node_modules/tailwindcss/lib/lib/setupTrackingContext.js +166 -0
- package/website/node_modules/tailwindcss/lib/lib/sharedState.js +87 -0
- package/website/node_modules/tailwindcss/lib/lib/substituteScreenAtRules.js +31 -0
- package/website/node_modules/tailwindcss/lib/oxide/cli/build/deps.js +89 -0
- package/website/node_modules/tailwindcss/lib/oxide/cli/build/index.js +53 -0
- package/website/node_modules/tailwindcss/lib/oxide/cli/build/plugin.js +375 -0
- package/website/node_modules/tailwindcss/lib/oxide/cli/build/utils.js +87 -0
- package/website/node_modules/tailwindcss/lib/oxide/cli/build/watching.js +179 -0
- package/website/node_modules/tailwindcss/lib/oxide/cli/help/index.js +72 -0
- package/website/node_modules/tailwindcss/lib/oxide/cli/index.js +214 -0
- package/website/node_modules/tailwindcss/lib/oxide/cli/init/index.js +52 -0
- package/website/node_modules/tailwindcss/lib/oxide/cli.js +5 -0
- package/website/node_modules/tailwindcss/lib/oxide/postcss-plugin.js +2 -0
- package/website/node_modules/tailwindcss/lib/plugin.js +98 -0
- package/website/node_modules/tailwindcss/lib/postcss-plugins/nesting/README.md +42 -0
- package/website/node_modules/tailwindcss/lib/postcss-plugins/nesting/index.js +21 -0
- package/website/node_modules/tailwindcss/lib/postcss-plugins/nesting/plugin.js +89 -0
- package/website/node_modules/tailwindcss/lib/processTailwindFeatures.js +64 -0
- package/website/node_modules/tailwindcss/lib/public/colors.js +355 -0
- package/website/node_modules/tailwindcss/lib/public/create-plugin.js +17 -0
- package/website/node_modules/tailwindcss/lib/public/default-config.js +18 -0
- package/website/node_modules/tailwindcss/lib/public/default-theme.js +18 -0
- package/website/node_modules/tailwindcss/lib/public/load-config.js +12 -0
- package/website/node_modules/tailwindcss/lib/public/resolve-config.js +24 -0
- package/website/node_modules/tailwindcss/lib/util/applyImportantSelector.js +36 -0
- package/website/node_modules/tailwindcss/lib/util/bigSign.js +13 -0
- package/website/node_modules/tailwindcss/lib/util/buildMediaQuery.js +27 -0
- package/website/node_modules/tailwindcss/lib/util/cloneDeep.js +22 -0
- package/website/node_modules/tailwindcss/lib/util/cloneNodes.js +34 -0
- package/website/node_modules/tailwindcss/lib/util/color.js +116 -0
- package/website/node_modules/tailwindcss/lib/util/colorNames.js +752 -0
- package/website/node_modules/tailwindcss/lib/util/configurePlugins.js +23 -0
- package/website/node_modules/tailwindcss/lib/util/createPlugin.js +32 -0
- package/website/node_modules/tailwindcss/lib/util/createUtilityPlugin.js +53 -0
- package/website/node_modules/tailwindcss/lib/util/dataTypes.js +304 -0
- package/website/node_modules/tailwindcss/lib/util/defaults.js +27 -0
- package/website/node_modules/tailwindcss/lib/util/escapeClassName.js +24 -0
- package/website/node_modules/tailwindcss/lib/util/escapeCommas.js +13 -0
- package/website/node_modules/tailwindcss/lib/util/flattenColorPalette.js +18 -0
- package/website/node_modules/tailwindcss/lib/util/formatVariantSelector.js +263 -0
- package/website/node_modules/tailwindcss/lib/util/getAllConfigs.js +50 -0
- package/website/node_modules/tailwindcss/lib/util/hashConfig.js +21 -0
- package/website/node_modules/tailwindcss/lib/util/isKeyframeRule.js +13 -0
- package/website/node_modules/tailwindcss/lib/util/isPlainObject.js +17 -0
- package/website/node_modules/tailwindcss/lib/util/isSyntacticallyValidPropertyValue.js +74 -0
- package/website/node_modules/tailwindcss/lib/util/log.js +61 -0
- package/website/node_modules/tailwindcss/lib/util/nameClass.js +49 -0
- package/website/node_modules/tailwindcss/lib/util/negateValue.js +36 -0
- package/website/node_modules/tailwindcss/lib/util/normalizeConfig.js +282 -0
- package/website/node_modules/tailwindcss/lib/util/normalizeScreens.js +178 -0
- package/website/node_modules/tailwindcss/lib/util/parseAnimationValue.js +93 -0
- package/website/node_modules/tailwindcss/lib/util/parseBoxShadowValue.js +88 -0
- package/website/node_modules/tailwindcss/lib/util/parseDependency.js +47 -0
- package/website/node_modules/tailwindcss/lib/util/parseGlob.js +36 -0
- package/website/node_modules/tailwindcss/lib/util/parseObjectStyles.js +36 -0
- package/website/node_modules/tailwindcss/lib/util/pluginUtils.js +276 -0
- package/website/node_modules/tailwindcss/lib/util/prefixSelector.js +39 -0
- package/website/node_modules/tailwindcss/lib/util/pseudoElements.js +209 -0
- package/website/node_modules/tailwindcss/lib/util/removeAlphaVariables.js +31 -0
- package/website/node_modules/tailwindcss/lib/util/resolveConfig.js +256 -0
- package/website/node_modules/tailwindcss/lib/util/resolveConfigPath.js +70 -0
- package/website/node_modules/tailwindcss/lib/util/responsive.js +24 -0
- package/website/node_modules/tailwindcss/lib/util/splitAtTopLevelOnly.js +51 -0
- package/website/node_modules/tailwindcss/lib/util/tap.js +14 -0
- package/website/node_modules/tailwindcss/lib/util/toColorValue.js +13 -0
- package/website/node_modules/tailwindcss/lib/util/toPath.js +32 -0
- package/website/node_modules/tailwindcss/lib/util/transformThemeValue.js +73 -0
- package/website/node_modules/tailwindcss/lib/util/validateConfig.js +37 -0
- package/website/node_modules/tailwindcss/lib/util/validateFormalSyntax.js +26 -0
- package/website/node_modules/tailwindcss/lib/util/withAlphaVariable.js +79 -0
- package/website/node_modules/tailwindcss/lib/value-parser/LICENSE +22 -0
- package/website/node_modules/tailwindcss/lib/value-parser/README.md +3 -0
- package/website/node_modules/tailwindcss/lib/value-parser/index.d.js +2 -0
- package/website/node_modules/tailwindcss/lib/value-parser/index.js +22 -0
- package/website/node_modules/tailwindcss/lib/value-parser/parse.js +259 -0
- package/website/node_modules/tailwindcss/lib/value-parser/stringify.js +38 -0
- package/website/node_modules/tailwindcss/lib/value-parser/unit.js +86 -0
- package/website/node_modules/tailwindcss/lib/value-parser/walk.js +16 -0
- package/website/node_modules/tailwindcss/loadConfig.d.ts +4 -0
- package/website/node_modules/tailwindcss/loadConfig.js +2 -0
- package/website/node_modules/tailwindcss/nesting/index.js +2 -0
- package/website/node_modules/tailwindcss/package.json +121 -0
- package/website/node_modules/tailwindcss/peers/index.js +96540 -0
- package/website/node_modules/tailwindcss/plugin.d.ts +11 -0
- package/website/node_modules/tailwindcss/plugin.js +2 -0
- package/website/node_modules/tailwindcss/prettier.config.js +19 -0
- package/website/node_modules/tailwindcss/resolveConfig.d.ts +12 -0
- package/website/node_modules/tailwindcss/resolveConfig.js +2 -0
- package/website/node_modules/tailwindcss/screens.css +1 -0
- package/website/node_modules/tailwindcss/scripts/create-plugin-list.js +10 -0
- package/website/node_modules/tailwindcss/scripts/generate-types.js +105 -0
- package/website/node_modules/tailwindcss/scripts/release-channel.js +18 -0
- package/website/node_modules/tailwindcss/scripts/release-notes.js +21 -0
- package/website/node_modules/tailwindcss/scripts/swap-engines.js +40 -0
- package/website/node_modules/tailwindcss/scripts/type-utils.js +27 -0
- package/website/node_modules/tailwindcss/src/cli/build/deps.js +56 -0
- package/website/node_modules/tailwindcss/src/cli/build/index.js +49 -0
- package/website/node_modules/tailwindcss/src/cli/build/plugin.js +444 -0
- package/website/node_modules/tailwindcss/src/cli/build/utils.js +76 -0
- package/website/node_modules/tailwindcss/src/cli/build/watching.js +229 -0
- package/website/node_modules/tailwindcss/src/cli/help/index.js +70 -0
- package/website/node_modules/tailwindcss/src/cli/index.js +216 -0
- package/website/node_modules/tailwindcss/src/cli/init/index.js +79 -0
- package/website/node_modules/tailwindcss/src/cli-peer-dependencies.js +15 -0
- package/website/node_modules/tailwindcss/src/cli.js +7 -0
- package/website/node_modules/tailwindcss/src/corePluginList.js +1 -0
- package/website/node_modules/tailwindcss/src/corePlugins.js +2855 -0
- package/website/node_modules/tailwindcss/src/css/LICENSE +25 -0
- package/website/node_modules/tailwindcss/src/css/preflight.css +378 -0
- package/website/node_modules/tailwindcss/src/featureFlags.js +70 -0
- package/website/node_modules/tailwindcss/src/index.js +1 -0
- package/website/node_modules/tailwindcss/src/lib/cacheInvalidation.js +52 -0
- package/website/node_modules/tailwindcss/src/lib/collapseAdjacentRules.js +58 -0
- package/website/node_modules/tailwindcss/src/lib/collapseDuplicateDeclarations.js +93 -0
- package/website/node_modules/tailwindcss/src/lib/content.js +208 -0
- package/website/node_modules/tailwindcss/src/lib/defaultExtractor.js +217 -0
- package/website/node_modules/tailwindcss/src/lib/detectNesting.js +47 -0
- package/website/node_modules/tailwindcss/src/lib/evaluateTailwindFunctions.js +272 -0
- package/website/node_modules/tailwindcss/src/lib/expandApplyAtRules.js +613 -0
- package/website/node_modules/tailwindcss/src/lib/expandTailwindAtRules.js +285 -0
- package/website/node_modules/tailwindcss/src/lib/findAtConfigPath.js +48 -0
- package/website/node_modules/tailwindcss/src/lib/generateRules.js +934 -0
- package/website/node_modules/tailwindcss/src/lib/getModuleDependencies.js +79 -0
- package/website/node_modules/tailwindcss/src/lib/load-config.ts +31 -0
- package/website/node_modules/tailwindcss/src/lib/normalizeTailwindDirectives.js +84 -0
- package/website/node_modules/tailwindcss/src/lib/offsets.js +373 -0
- package/website/node_modules/tailwindcss/src/lib/partitionApplyAtRules.js +52 -0
- package/website/node_modules/tailwindcss/src/lib/regex.js +74 -0
- package/website/node_modules/tailwindcss/src/lib/remap-bitfield.js +82 -0
- package/website/node_modules/tailwindcss/src/lib/resolveDefaultsAtRules.js +163 -0
- package/website/node_modules/tailwindcss/src/lib/setupContextUtils.js +1340 -0
- package/website/node_modules/tailwindcss/src/lib/setupTrackingContext.js +169 -0
- package/website/node_modules/tailwindcss/src/lib/sharedState.js +61 -0
- package/website/node_modules/tailwindcss/src/lib/substituteScreenAtRules.js +19 -0
- package/website/node_modules/tailwindcss/src/oxide/cli/build/deps.ts +91 -0
- package/website/node_modules/tailwindcss/src/oxide/cli/build/index.ts +47 -0
- package/website/node_modules/tailwindcss/src/oxide/cli/build/plugin.ts +442 -0
- package/website/node_modules/tailwindcss/src/oxide/cli/build/utils.ts +74 -0
- package/website/node_modules/tailwindcss/src/oxide/cli/build/watching.ts +225 -0
- package/website/node_modules/tailwindcss/src/oxide/cli/help/index.ts +69 -0
- package/website/node_modules/tailwindcss/src/oxide/cli/index.ts +204 -0
- package/website/node_modules/tailwindcss/src/oxide/cli/init/index.ts +59 -0
- package/website/node_modules/tailwindcss/src/oxide/cli.ts +1 -0
- package/website/node_modules/tailwindcss/src/oxide/postcss-plugin.ts +1 -0
- package/website/node_modules/tailwindcss/src/plugin.js +107 -0
- package/website/node_modules/tailwindcss/src/postcss-plugins/nesting/README.md +42 -0
- package/website/node_modules/tailwindcss/src/postcss-plugins/nesting/index.js +13 -0
- package/website/node_modules/tailwindcss/src/postcss-plugins/nesting/plugin.js +80 -0
- package/website/node_modules/tailwindcss/src/processTailwindFeatures.js +59 -0
- package/website/node_modules/tailwindcss/src/public/colors.js +322 -0
- package/website/node_modules/tailwindcss/src/public/create-plugin.js +2 -0
- package/website/node_modules/tailwindcss/src/public/default-config.js +4 -0
- package/website/node_modules/tailwindcss/src/public/default-theme.js +4 -0
- package/website/node_modules/tailwindcss/src/public/load-config.js +2 -0
- package/website/node_modules/tailwindcss/src/public/resolve-config.js +7 -0
- package/website/node_modules/tailwindcss/src/util/applyImportantSelector.js +27 -0
- package/website/node_modules/tailwindcss/src/util/bigSign.js +3 -0
- package/website/node_modules/tailwindcss/src/util/buildMediaQuery.js +22 -0
- package/website/node_modules/tailwindcss/src/util/cloneDeep.js +11 -0
- package/website/node_modules/tailwindcss/src/util/cloneNodes.js +28 -0
- package/website/node_modules/tailwindcss/src/util/color.js +88 -0
- package/website/node_modules/tailwindcss/src/util/colorNames.js +150 -0
- package/website/node_modules/tailwindcss/src/util/configurePlugins.js +23 -0
- package/website/node_modules/tailwindcss/src/util/createPlugin.js +27 -0
- package/website/node_modules/tailwindcss/src/util/createUtilityPlugin.js +37 -0
- package/website/node_modules/tailwindcss/src/util/dataTypes.js +292 -0
- package/website/node_modules/tailwindcss/src/util/defaults.js +17 -0
- package/website/node_modules/tailwindcss/src/util/escapeClassName.js +8 -0
- package/website/node_modules/tailwindcss/src/util/escapeCommas.js +3 -0
- package/website/node_modules/tailwindcss/src/util/flattenColorPalette.js +13 -0
- package/website/node_modules/tailwindcss/src/util/formatVariantSelector.js +316 -0
- package/website/node_modules/tailwindcss/src/util/getAllConfigs.js +38 -0
- package/website/node_modules/tailwindcss/src/util/hashConfig.js +5 -0
- package/website/node_modules/tailwindcss/src/util/isKeyframeRule.js +3 -0
- package/website/node_modules/tailwindcss/src/util/isPlainObject.js +8 -0
- package/website/node_modules/tailwindcss/src/util/isSyntacticallyValidPropertyValue.js +61 -0
- package/website/node_modules/tailwindcss/src/util/log.js +29 -0
- package/website/node_modules/tailwindcss/src/util/nameClass.js +30 -0
- package/website/node_modules/tailwindcss/src/util/negateValue.js +24 -0
- package/website/node_modules/tailwindcss/src/util/normalizeConfig.js +301 -0
- package/website/node_modules/tailwindcss/src/util/normalizeScreens.js +140 -0
- package/website/node_modules/tailwindcss/src/util/parseAnimationValue.js +68 -0
- package/website/node_modules/tailwindcss/src/util/parseBoxShadowValue.js +72 -0
- package/website/node_modules/tailwindcss/src/util/parseDependency.js +44 -0
- package/website/node_modules/tailwindcss/src/util/parseGlob.js +24 -0
- package/website/node_modules/tailwindcss/src/util/parseObjectStyles.js +19 -0
- package/website/node_modules/tailwindcss/src/util/pluginUtils.js +291 -0
- package/website/node_modules/tailwindcss/src/util/prefixSelector.js +33 -0
- package/website/node_modules/tailwindcss/src/util/pseudoElements.js +167 -0
- package/website/node_modules/tailwindcss/src/util/removeAlphaVariables.js +24 -0
- package/website/node_modules/tailwindcss/src/util/resolveConfig.js +277 -0
- package/website/node_modules/tailwindcss/src/util/resolveConfigPath.js +66 -0
- package/website/node_modules/tailwindcss/src/util/responsive.js +10 -0
- package/website/node_modules/tailwindcss/src/util/splitAtTopLevelOnly.js +52 -0
- package/website/node_modules/tailwindcss/src/util/tap.js +4 -0
- package/website/node_modules/tailwindcss/src/util/toColorValue.js +3 -0
- package/website/node_modules/tailwindcss/src/util/toPath.js +26 -0
- package/website/node_modules/tailwindcss/src/util/transformThemeValue.js +62 -0
- package/website/node_modules/tailwindcss/src/util/validateConfig.js +26 -0
- package/website/node_modules/tailwindcss/src/util/validateFormalSyntax.js +34 -0
- package/website/node_modules/tailwindcss/src/util/withAlphaVariable.js +49 -0
- package/website/node_modules/tailwindcss/src/value-parser/LICENSE +22 -0
- package/website/node_modules/tailwindcss/src/value-parser/README.md +3 -0
- package/website/node_modules/tailwindcss/src/value-parser/index.d.ts +177 -0
- package/website/node_modules/tailwindcss/src/value-parser/index.js +28 -0
- package/website/node_modules/tailwindcss/src/value-parser/parse.js +303 -0
- package/website/node_modules/tailwindcss/src/value-parser/stringify.js +41 -0
- package/website/node_modules/tailwindcss/src/value-parser/unit.js +118 -0
- package/website/node_modules/tailwindcss/src/value-parser/walk.js +18 -0
- package/website/node_modules/tailwindcss/stubs/.npmignore +1 -0
- package/website/node_modules/tailwindcss/stubs/.prettierrc.json +6 -0
- package/website/node_modules/tailwindcss/stubs/config.full.js +991 -0
- package/website/node_modules/tailwindcss/stubs/config.simple.js +7 -0
- package/website/node_modules/tailwindcss/stubs/postcss.config.cjs +6 -0
- package/website/node_modules/tailwindcss/stubs/postcss.config.js +6 -0
- package/website/node_modules/tailwindcss/stubs/tailwind.config.cjs +2 -0
- package/website/node_modules/tailwindcss/stubs/tailwind.config.js +2 -0
- package/website/node_modules/tailwindcss/stubs/tailwind.config.ts +3 -0
- package/website/node_modules/tailwindcss/tailwind.css +5 -0
- package/website/node_modules/tailwindcss/types/config.d.ts +368 -0
- package/website/node_modules/tailwindcss/types/generated/.gitkeep +0 -0
- package/website/node_modules/tailwindcss/types/generated/colors.d.ts +298 -0
- package/website/node_modules/tailwindcss/types/generated/corePluginList.d.ts +1 -0
- package/website/node_modules/tailwindcss/types/generated/default-theme.d.ts +372 -0
- package/website/node_modules/tailwindcss/types/index.d.ts +7 -0
- package/website/node_modules/tailwindcss/utilities.css +1 -0
- package/website/node_modules/tailwindcss/variants.css +1 -0
- package/website/node_modules/thenify/History.md +11 -0
- package/website/node_modules/thenify/LICENSE +22 -0
- package/website/node_modules/thenify/README.md +120 -0
- package/website/node_modules/thenify/index.js +77 -0
- package/website/node_modules/thenify/package.json +31 -0
- package/website/node_modules/thenify-all/History.md +11 -0
- package/website/node_modules/thenify-all/LICENSE +22 -0
- package/website/node_modules/thenify-all/README.md +66 -0
- package/website/node_modules/thenify-all/index.js +73 -0
- package/website/node_modules/thenify-all/package.json +34 -0
- package/website/node_modules/to-regex-range/LICENSE +21 -0
- package/website/node_modules/to-regex-range/README.md +305 -0
- package/website/node_modules/to-regex-range/index.js +288 -0
- package/website/node_modules/to-regex-range/package.json +88 -0
- package/website/node_modules/ts-interface-checker/LICENSE +201 -0
- package/website/node_modules/ts-interface-checker/README.md +185 -0
- package/website/node_modules/ts-interface-checker/dist/index.d.ts +124 -0
- package/website/node_modules/ts-interface-checker/dist/index.js +224 -0
- package/website/node_modules/ts-interface-checker/dist/types.d.ts +181 -0
- package/website/node_modules/ts-interface-checker/dist/types.js +566 -0
- package/website/node_modules/ts-interface-checker/dist/util.d.ts +55 -0
- package/website/node_modules/ts-interface-checker/dist/util.js +130 -0
- package/website/node_modules/ts-interface-checker/package.json +60 -0
- package/website/node_modules/util-deprecate/History.md +16 -0
- package/website/node_modules/util-deprecate/LICENSE +24 -0
- package/website/node_modules/util-deprecate/README.md +53 -0
- package/website/node_modules/util-deprecate/browser.js +67 -0
- package/website/node_modules/util-deprecate/node.js +6 -0
- package/website/node_modules/util-deprecate/package.json +27 -0
- package/website/node_modules/wrappy/LICENSE +15 -0
- package/website/node_modules/wrappy/README.md +36 -0
- package/website/node_modules/wrappy/package.json +29 -0
- package/website/node_modules/wrappy/wrappy.js +33 -0
- package/website/node_modules/yaml/LICENSE +13 -0
- package/website/node_modules/yaml/README.md +147 -0
- package/website/node_modules/yaml/browser/dist/compose/compose-collection.js +76 -0
- package/website/node_modules/yaml/browser/dist/compose/compose-doc.js +41 -0
- package/website/node_modules/yaml/browser/dist/compose/compose-node.js +92 -0
- package/website/node_modules/yaml/browser/dist/compose/compose-scalar.js +80 -0
- package/website/node_modules/yaml/browser/dist/compose/composer.js +217 -0
- package/website/node_modules/yaml/browser/dist/compose/resolve-block-map.js +111 -0
- package/website/node_modules/yaml/browser/dist/compose/resolve-block-scalar.js +194 -0
- package/website/node_modules/yaml/browser/dist/compose/resolve-block-seq.js +46 -0
- package/website/node_modules/yaml/browser/dist/compose/resolve-end.js +37 -0
- package/website/node_modules/yaml/browser/dist/compose/resolve-flow-collection.js +199 -0
- package/website/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +223 -0
- package/website/node_modules/yaml/browser/dist/compose/resolve-props.js +134 -0
- package/website/node_modules/yaml/browser/dist/compose/util-contains-newline.js +34 -0
- package/website/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.js +27 -0
- package/website/node_modules/yaml/browser/dist/compose/util-flow-indent-check.js +15 -0
- package/website/node_modules/yaml/browser/dist/compose/util-map-includes.js +17 -0
- package/website/node_modules/yaml/browser/dist/doc/Document.js +334 -0
- package/website/node_modules/yaml/browser/dist/doc/anchors.js +72 -0
- package/website/node_modules/yaml/browser/dist/doc/applyReviver.js +54 -0
- package/website/node_modules/yaml/browser/dist/doc/createNode.js +89 -0
- package/website/node_modules/yaml/browser/dist/doc/directives.js +169 -0
- package/website/node_modules/yaml/browser/dist/errors.js +57 -0
- package/website/node_modules/yaml/browser/dist/index.js +17 -0
- package/website/node_modules/yaml/browser/dist/log.js +16 -0
- package/website/node_modules/yaml/browser/dist/node_modules/tslib/tslib.es6.js +21 -0
- package/website/node_modules/yaml/browser/dist/nodes/Alias.js +101 -0
- package/website/node_modules/yaml/browser/dist/nodes/Collection.js +148 -0
- package/website/node_modules/yaml/browser/dist/nodes/Node.js +38 -0
- package/website/node_modules/yaml/browser/dist/nodes/Pair.js +36 -0
- package/website/node_modules/yaml/browser/dist/nodes/Scalar.js +24 -0
- package/website/node_modules/yaml/browser/dist/nodes/YAMLMap.js +144 -0
- package/website/node_modules/yaml/browser/dist/nodes/YAMLSeq.js +113 -0
- package/website/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js +104 -0
- package/website/node_modules/yaml/browser/dist/nodes/identity.js +36 -0
- package/website/node_modules/yaml/browser/dist/nodes/toJS.js +37 -0
- package/website/node_modules/yaml/browser/dist/parse/cst-scalar.js +214 -0
- package/website/node_modules/yaml/browser/dist/parse/cst-stringify.js +61 -0
- package/website/node_modules/yaml/browser/dist/parse/cst-visit.js +97 -0
- package/website/node_modules/yaml/browser/dist/parse/cst.js +98 -0
- package/website/node_modules/yaml/browser/dist/parse/lexer.js +701 -0
- package/website/node_modules/yaml/browser/dist/parse/line-counter.js +39 -0
- package/website/node_modules/yaml/browser/dist/parse/parser.js +950 -0
- package/website/node_modules/yaml/browser/dist/public-api.js +99 -0
- package/website/node_modules/yaml/browser/dist/schema/Schema.js +38 -0
- package/website/node_modules/yaml/browser/dist/schema/common/map.js +17 -0
- package/website/node_modules/yaml/browser/dist/schema/common/null.js +15 -0
- package/website/node_modules/yaml/browser/dist/schema/common/seq.js +17 -0
- package/website/node_modules/yaml/browser/dist/schema/common/string.js +14 -0
- package/website/node_modules/yaml/browser/dist/schema/core/bool.js +19 -0
- package/website/node_modules/yaml/browser/dist/schema/core/float.js +43 -0
- package/website/node_modules/yaml/browser/dist/schema/core/int.js +38 -0
- package/website/node_modules/yaml/browser/dist/schema/core/schema.js +23 -0
- package/website/node_modules/yaml/browser/dist/schema/json/schema.js +62 -0
- package/website/node_modules/yaml/browser/dist/schema/tags.js +83 -0
- package/website/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.js +66 -0
- package/website/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.js +26 -0
- package/website/node_modules/yaml/browser/dist/schema/yaml-1.1/float.js +46 -0
- package/website/node_modules/yaml/browser/dist/schema/yaml-1.1/int.js +71 -0
- package/website/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js +74 -0
- package/website/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js +78 -0
- package/website/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.js +37 -0
- package/website/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js +93 -0
- package/website/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js +101 -0
- package/website/node_modules/yaml/browser/dist/stringify/foldFlowLines.js +135 -0
- package/website/node_modules/yaml/browser/dist/stringify/stringify.js +124 -0
- package/website/node_modules/yaml/browser/dist/stringify/stringifyCollection.js +151 -0
- package/website/node_modules/yaml/browser/dist/stringify/stringifyComment.js +20 -0
- package/website/node_modules/yaml/browser/dist/stringify/stringifyDocument.js +85 -0
- package/website/node_modules/yaml/browser/dist/stringify/stringifyNumber.js +24 -0
- package/website/node_modules/yaml/browser/dist/stringify/stringifyPair.js +150 -0
- package/website/node_modules/yaml/browser/dist/stringify/stringifyString.js +328 -0
- package/website/node_modules/yaml/browser/dist/util.js +11 -0
- package/website/node_modules/yaml/browser/dist/visit.js +233 -0
- package/website/node_modules/yaml/browser/index.js +5 -0
- package/website/node_modules/yaml/browser/package.json +3 -0
- package/website/node_modules/yaml/dist/compose/compose-collection.d.ts +5 -0
- package/website/node_modules/yaml/dist/compose/compose-collection.js +78 -0
- package/website/node_modules/yaml/dist/compose/compose-doc.d.ts +7 -0
- package/website/node_modules/yaml/dist/compose/compose-doc.js +43 -0
- package/website/node_modules/yaml/dist/compose/compose-node.d.ts +27 -0
- package/website/node_modules/yaml/dist/compose/compose-node.js +95 -0
- package/website/node_modules/yaml/dist/compose/compose-scalar.d.ts +5 -0
- package/website/node_modules/yaml/dist/compose/compose-scalar.js +82 -0
- package/website/node_modules/yaml/dist/compose/composer.d.ts +62 -0
- package/website/node_modules/yaml/dist/compose/composer.js +221 -0
- package/website/node_modules/yaml/dist/compose/resolve-block-map.d.ts +7 -0
- package/website/node_modules/yaml/dist/compose/resolve-block-map.js +113 -0
- package/website/node_modules/yaml/dist/compose/resolve-block-scalar.d.ts +10 -0
- package/website/node_modules/yaml/dist/compose/resolve-block-scalar.js +196 -0
- package/website/node_modules/yaml/dist/compose/resolve-block-seq.d.ts +6 -0
- package/website/node_modules/yaml/dist/compose/resolve-block-seq.js +48 -0
- package/website/node_modules/yaml/dist/compose/resolve-end.d.ts +6 -0
- package/website/node_modules/yaml/dist/compose/resolve-end.js +39 -0
- package/website/node_modules/yaml/dist/compose/resolve-flow-collection.d.ts +7 -0
- package/website/node_modules/yaml/dist/compose/resolve-flow-collection.js +201 -0
- package/website/node_modules/yaml/dist/compose/resolve-flow-scalar.d.ts +10 -0
- package/website/node_modules/yaml/dist/compose/resolve-flow-scalar.js +225 -0
- package/website/node_modules/yaml/dist/compose/resolve-props.d.ts +22 -0
- package/website/node_modules/yaml/dist/compose/resolve-props.js +136 -0
- package/website/node_modules/yaml/dist/compose/util-contains-newline.d.ts +2 -0
- package/website/node_modules/yaml/dist/compose/util-contains-newline.js +36 -0
- package/website/node_modules/yaml/dist/compose/util-empty-scalar-position.d.ts +2 -0
- package/website/node_modules/yaml/dist/compose/util-empty-scalar-position.js +29 -0
- package/website/node_modules/yaml/dist/compose/util-flow-indent-check.d.ts +3 -0
- package/website/node_modules/yaml/dist/compose/util-flow-indent-check.js +17 -0
- package/website/node_modules/yaml/dist/compose/util-map-includes.d.ts +4 -0
- package/website/node_modules/yaml/dist/compose/util-map-includes.js +19 -0
- package/website/node_modules/yaml/dist/doc/Document.d.ts +141 -0
- package/website/node_modules/yaml/dist/doc/Document.js +336 -0
- package/website/node_modules/yaml/dist/doc/anchors.d.ts +24 -0
- package/website/node_modules/yaml/dist/doc/anchors.js +77 -0
- package/website/node_modules/yaml/dist/doc/applyReviver.d.ts +9 -0
- package/website/node_modules/yaml/dist/doc/applyReviver.js +56 -0
- package/website/node_modules/yaml/dist/doc/createNode.d.ts +17 -0
- package/website/node_modules/yaml/dist/doc/createNode.js +91 -0
- package/website/node_modules/yaml/dist/doc/directives.d.ts +49 -0
- package/website/node_modules/yaml/dist/doc/directives.js +171 -0
- package/website/node_modules/yaml/dist/errors.d.ts +21 -0
- package/website/node_modules/yaml/dist/errors.js +62 -0
- package/website/node_modules/yaml/dist/index.d.ts +22 -0
- package/website/node_modules/yaml/dist/index.js +50 -0
- package/website/node_modules/yaml/dist/log.d.ts +3 -0
- package/website/node_modules/yaml/dist/log.js +19 -0
- package/website/node_modules/yaml/dist/nodes/Alias.d.ts +28 -0
- package/website/node_modules/yaml/dist/nodes/Alias.js +103 -0
- package/website/node_modules/yaml/dist/nodes/Collection.d.ts +74 -0
- package/website/node_modules/yaml/dist/nodes/Collection.js +152 -0
- package/website/node_modules/yaml/dist/nodes/Node.d.ts +46 -0
- package/website/node_modules/yaml/dist/nodes/Node.js +40 -0
- package/website/node_modules/yaml/dist/nodes/Pair.d.ts +21 -0
- package/website/node_modules/yaml/dist/nodes/Pair.js +39 -0
- package/website/node_modules/yaml/dist/nodes/Scalar.d.ts +42 -0
- package/website/node_modules/yaml/dist/nodes/Scalar.js +27 -0
- package/website/node_modules/yaml/dist/nodes/YAMLMap.d.ts +53 -0
- package/website/node_modules/yaml/dist/nodes/YAMLMap.js +147 -0
- package/website/node_modules/yaml/dist/nodes/YAMLSeq.d.ts +60 -0
- package/website/node_modules/yaml/dist/nodes/YAMLSeq.js +115 -0
- package/website/node_modules/yaml/dist/nodes/addPairToJSMap.d.ts +4 -0
- package/website/node_modules/yaml/dist/nodes/addPairToJSMap.js +106 -0
- package/website/node_modules/yaml/dist/nodes/identity.d.ts +23 -0
- package/website/node_modules/yaml/dist/nodes/identity.js +53 -0
- package/website/node_modules/yaml/dist/nodes/toJS.d.ts +27 -0
- package/website/node_modules/yaml/dist/nodes/toJS.js +39 -0
- package/website/node_modules/yaml/dist/options.d.ts +338 -0
- package/website/node_modules/yaml/dist/parse/cst-scalar.d.ts +64 -0
- package/website/node_modules/yaml/dist/parse/cst-scalar.js +218 -0
- package/website/node_modules/yaml/dist/parse/cst-stringify.d.ts +8 -0
- package/website/node_modules/yaml/dist/parse/cst-stringify.js +63 -0
- package/website/node_modules/yaml/dist/parse/cst-visit.d.ts +39 -0
- package/website/node_modules/yaml/dist/parse/cst-visit.js +99 -0
- package/website/node_modules/yaml/dist/parse/cst.d.ts +106 -0
- package/website/node_modules/yaml/dist/parse/cst.js +112 -0
- package/website/node_modules/yaml/dist/parse/lexer.d.ts +87 -0
- package/website/node_modules/yaml/dist/parse/lexer.js +703 -0
- package/website/node_modules/yaml/dist/parse/line-counter.d.ts +22 -0
- package/website/node_modules/yaml/dist/parse/line-counter.js +41 -0
- package/website/node_modules/yaml/dist/parse/parser.d.ts +84 -0
- package/website/node_modules/yaml/dist/parse/parser.js +954 -0
- package/website/node_modules/yaml/dist/public-api.d.ts +43 -0
- package/website/node_modules/yaml/dist/public-api.js +104 -0
- package/website/node_modules/yaml/dist/schema/Schema.d.ts +18 -0
- package/website/node_modules/yaml/dist/schema/Schema.js +40 -0
- package/website/node_modules/yaml/dist/schema/common/map.d.ts +2 -0
- package/website/node_modules/yaml/dist/schema/common/map.js +19 -0
- package/website/node_modules/yaml/dist/schema/common/null.d.ts +4 -0
- package/website/node_modules/yaml/dist/schema/common/null.js +17 -0
- package/website/node_modules/yaml/dist/schema/common/seq.d.ts +2 -0
- package/website/node_modules/yaml/dist/schema/common/seq.js +19 -0
- package/website/node_modules/yaml/dist/schema/common/string.d.ts +2 -0
- package/website/node_modules/yaml/dist/schema/common/string.js +16 -0
- package/website/node_modules/yaml/dist/schema/core/bool.d.ts +4 -0
- package/website/node_modules/yaml/dist/schema/core/bool.js +21 -0
- package/website/node_modules/yaml/dist/schema/core/float.d.ts +4 -0
- package/website/node_modules/yaml/dist/schema/core/float.js +47 -0
- package/website/node_modules/yaml/dist/schema/core/int.d.ts +4 -0
- package/website/node_modules/yaml/dist/schema/core/int.js +42 -0
- package/website/node_modules/yaml/dist/schema/core/schema.d.ts +1 -0
- package/website/node_modules/yaml/dist/schema/core/schema.js +25 -0
- package/website/node_modules/yaml/dist/schema/json/schema.d.ts +2 -0
- package/website/node_modules/yaml/dist/schema/json/schema.js +64 -0
- package/website/node_modules/yaml/dist/schema/json-schema.d.ts +69 -0
- package/website/node_modules/yaml/dist/schema/tags.d.ts +40 -0
- package/website/node_modules/yaml/dist/schema/tags.js +86 -0
- package/website/node_modules/yaml/dist/schema/types.d.ts +90 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/binary.d.ts +2 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/binary.js +68 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/bool.d.ts +7 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/bool.js +29 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/float.d.ts +4 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/float.js +50 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/int.d.ts +5 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/int.js +76 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/omap.d.ts +28 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/omap.js +77 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/pairs.d.ts +10 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/pairs.js +82 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/schema.d.ts +1 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/schema.js +39 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/set.d.ts +28 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/set.js +96 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/timestamp.d.ts +6 -0
- package/website/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js +105 -0
- package/website/node_modules/yaml/dist/stringify/foldFlowLines.d.ts +34 -0
- package/website/node_modules/yaml/dist/stringify/foldFlowLines.js +140 -0
- package/website/node_modules/yaml/dist/stringify/stringify.d.ts +21 -0
- package/website/node_modules/yaml/dist/stringify/stringify.js +127 -0
- package/website/node_modules/yaml/dist/stringify/stringifyCollection.d.ts +17 -0
- package/website/node_modules/yaml/dist/stringify/stringifyCollection.js +153 -0
- package/website/node_modules/yaml/dist/stringify/stringifyComment.d.ts +10 -0
- package/website/node_modules/yaml/dist/stringify/stringifyComment.js +24 -0
- package/website/node_modules/yaml/dist/stringify/stringifyDocument.d.ts +4 -0
- package/website/node_modules/yaml/dist/stringify/stringifyDocument.js +87 -0
- package/website/node_modules/yaml/dist/stringify/stringifyNumber.d.ts +2 -0
- package/website/node_modules/yaml/dist/stringify/stringifyNumber.js +26 -0
- package/website/node_modules/yaml/dist/stringify/stringifyPair.d.ts +3 -0
- package/website/node_modules/yaml/dist/stringify/stringifyPair.js +152 -0
- package/website/node_modules/yaml/dist/stringify/stringifyString.d.ts +9 -0
- package/website/node_modules/yaml/dist/stringify/stringifyString.js +330 -0
- package/website/node_modules/yaml/dist/test-events.d.ts +4 -0
- package/website/node_modules/yaml/dist/test-events.js +134 -0
- package/website/node_modules/yaml/dist/util.d.ts +12 -0
- package/website/node_modules/yaml/dist/util.js +28 -0
- package/website/node_modules/yaml/dist/visit.d.ts +102 -0
- package/website/node_modules/yaml/dist/visit.js +236 -0
- package/website/node_modules/yaml/package.json +95 -0
- package/website/node_modules/yaml/util.js +2 -0
- package/website/package-lock.json +940 -0
- package/website/package.json +19 -0
- package/website/src/dev/app.css +3 -0
- package/website/src/pages/Home.js +16 -0
- package/website/src/views/home.html +3 -0
- package/website/tailwind.config.js +12 -0
|
@@ -0,0 +1,1632 @@
|
|
|
1
|
+
import {
|
|
2
|
+
eat,
|
|
3
|
+
finishToken,
|
|
4
|
+
IdentifierRole,
|
|
5
|
+
lookaheadType,
|
|
6
|
+
lookaheadTypeAndKeyword,
|
|
7
|
+
match,
|
|
8
|
+
next,
|
|
9
|
+
nextTemplateToken,
|
|
10
|
+
popTypeContext,
|
|
11
|
+
pushTypeContext,
|
|
12
|
+
rescan_gt,
|
|
13
|
+
} from "../tokenizer/index";
|
|
14
|
+
import {ContextualKeyword} from "../tokenizer/keywords";
|
|
15
|
+
import {TokenType, TokenType as tt} from "../tokenizer/types";
|
|
16
|
+
import {isJSXEnabled, state} from "../traverser/base";
|
|
17
|
+
import {
|
|
18
|
+
atPossibleAsync,
|
|
19
|
+
baseParseMaybeAssign,
|
|
20
|
+
baseParseSubscript,
|
|
21
|
+
parseCallExpressionArguments,
|
|
22
|
+
parseExprAtom,
|
|
23
|
+
parseExpression,
|
|
24
|
+
parseFunctionBody,
|
|
25
|
+
parseIdentifier,
|
|
26
|
+
parseLiteral,
|
|
27
|
+
parseMaybeAssign,
|
|
28
|
+
parseMaybeUnary,
|
|
29
|
+
parsePropertyName,
|
|
30
|
+
parseTemplate,
|
|
31
|
+
|
|
32
|
+
} from "../traverser/expression";
|
|
33
|
+
import {parseBindingIdentifier, parseBindingList, parseImportedIdentifier} from "../traverser/lval";
|
|
34
|
+
import {
|
|
35
|
+
baseParseMaybeDecoratorArguments,
|
|
36
|
+
parseBlockBody,
|
|
37
|
+
parseClass,
|
|
38
|
+
parseFunction,
|
|
39
|
+
parseFunctionParams,
|
|
40
|
+
parseStatement,
|
|
41
|
+
parseVarStatement,
|
|
42
|
+
} from "../traverser/statement";
|
|
43
|
+
import {
|
|
44
|
+
canInsertSemicolon,
|
|
45
|
+
eatContextual,
|
|
46
|
+
expect,
|
|
47
|
+
expectContextual,
|
|
48
|
+
hasPrecedingLineBreak,
|
|
49
|
+
isContextual,
|
|
50
|
+
isLineTerminator,
|
|
51
|
+
isLookaheadContextual,
|
|
52
|
+
semicolon,
|
|
53
|
+
unexpected,
|
|
54
|
+
} from "../traverser/util";
|
|
55
|
+
import {nextJSXTagToken} from "./jsx";
|
|
56
|
+
|
|
57
|
+
function tsIsIdentifier() {
|
|
58
|
+
// TODO: actually a bit more complex in TypeScript, but shouldn't matter.
|
|
59
|
+
// See https://github.com/Microsoft/TypeScript/issues/15008
|
|
60
|
+
return match(tt.name);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function isLiteralPropertyName() {
|
|
64
|
+
return (
|
|
65
|
+
match(tt.name) ||
|
|
66
|
+
Boolean(state.type & TokenType.IS_KEYWORD) ||
|
|
67
|
+
match(tt.string) ||
|
|
68
|
+
match(tt.num) ||
|
|
69
|
+
match(tt.bigint) ||
|
|
70
|
+
match(tt.decimal)
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function tsNextTokenCanFollowModifier() {
|
|
75
|
+
// Note: TypeScript's implementation is much more complicated because
|
|
76
|
+
// more things are considered modifiers there.
|
|
77
|
+
// This implementation only handles modifiers not handled by babylon itself. And "static".
|
|
78
|
+
// TODO: Would be nice to avoid lookahead. Want a hasLineBreakUpNext() method...
|
|
79
|
+
const snapshot = state.snapshot();
|
|
80
|
+
|
|
81
|
+
next();
|
|
82
|
+
const canFollowModifier =
|
|
83
|
+
(match(tt.bracketL) ||
|
|
84
|
+
match(tt.braceL) ||
|
|
85
|
+
match(tt.star) ||
|
|
86
|
+
match(tt.ellipsis) ||
|
|
87
|
+
match(tt.hash) ||
|
|
88
|
+
isLiteralPropertyName()) &&
|
|
89
|
+
!hasPrecedingLineBreak();
|
|
90
|
+
|
|
91
|
+
if (canFollowModifier) {
|
|
92
|
+
return true;
|
|
93
|
+
} else {
|
|
94
|
+
state.restoreFromSnapshot(snapshot);
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function tsParseModifiers(allowedModifiers) {
|
|
100
|
+
while (true) {
|
|
101
|
+
const modifier = tsParseModifier(allowedModifiers);
|
|
102
|
+
if (modifier === null) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/** Parses a modifier matching one the given modifier names. */
|
|
109
|
+
export function tsParseModifier(
|
|
110
|
+
allowedModifiers,
|
|
111
|
+
) {
|
|
112
|
+
if (!match(tt.name)) {
|
|
113
|
+
return null;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const modifier = state.contextualKeyword;
|
|
117
|
+
if (allowedModifiers.indexOf(modifier) !== -1 && tsNextTokenCanFollowModifier()) {
|
|
118
|
+
switch (modifier) {
|
|
119
|
+
case ContextualKeyword._readonly:
|
|
120
|
+
state.tokens[state.tokens.length - 1].type = tt._readonly;
|
|
121
|
+
break;
|
|
122
|
+
case ContextualKeyword._abstract:
|
|
123
|
+
state.tokens[state.tokens.length - 1].type = tt._abstract;
|
|
124
|
+
break;
|
|
125
|
+
case ContextualKeyword._static:
|
|
126
|
+
state.tokens[state.tokens.length - 1].type = tt._static;
|
|
127
|
+
break;
|
|
128
|
+
case ContextualKeyword._public:
|
|
129
|
+
state.tokens[state.tokens.length - 1].type = tt._public;
|
|
130
|
+
break;
|
|
131
|
+
case ContextualKeyword._private:
|
|
132
|
+
state.tokens[state.tokens.length - 1].type = tt._private;
|
|
133
|
+
break;
|
|
134
|
+
case ContextualKeyword._protected:
|
|
135
|
+
state.tokens[state.tokens.length - 1].type = tt._protected;
|
|
136
|
+
break;
|
|
137
|
+
case ContextualKeyword._override:
|
|
138
|
+
state.tokens[state.tokens.length - 1].type = tt._override;
|
|
139
|
+
break;
|
|
140
|
+
case ContextualKeyword._declare:
|
|
141
|
+
state.tokens[state.tokens.length - 1].type = tt._declare;
|
|
142
|
+
break;
|
|
143
|
+
default:
|
|
144
|
+
break;
|
|
145
|
+
}
|
|
146
|
+
return modifier;
|
|
147
|
+
}
|
|
148
|
+
return null;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
function tsParseEntityName() {
|
|
152
|
+
parseIdentifier();
|
|
153
|
+
while (eat(tt.dot)) {
|
|
154
|
+
parseIdentifier();
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
function tsParseTypeReference() {
|
|
159
|
+
tsParseEntityName();
|
|
160
|
+
if (!hasPrecedingLineBreak() && match(tt.lessThan)) {
|
|
161
|
+
tsParseTypeArguments();
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function tsParseThisTypePredicate() {
|
|
166
|
+
next();
|
|
167
|
+
tsParseTypeAnnotation();
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
function tsParseThisTypeNode() {
|
|
171
|
+
next();
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
function tsParseTypeQuery() {
|
|
175
|
+
expect(tt._typeof);
|
|
176
|
+
if (match(tt._import)) {
|
|
177
|
+
tsParseImportType();
|
|
178
|
+
} else {
|
|
179
|
+
tsParseEntityName();
|
|
180
|
+
}
|
|
181
|
+
if (!hasPrecedingLineBreak() && match(tt.lessThan)) {
|
|
182
|
+
tsParseTypeArguments();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
function tsParseImportType() {
|
|
187
|
+
expect(tt._import);
|
|
188
|
+
expect(tt.parenL);
|
|
189
|
+
expect(tt.string);
|
|
190
|
+
expect(tt.parenR);
|
|
191
|
+
if (eat(tt.dot)) {
|
|
192
|
+
tsParseEntityName();
|
|
193
|
+
}
|
|
194
|
+
if (match(tt.lessThan)) {
|
|
195
|
+
tsParseTypeArguments();
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
function tsParseTypeParameter() {
|
|
200
|
+
eat(tt._const);
|
|
201
|
+
const hadIn = eat(tt._in);
|
|
202
|
+
const hadOut = eatContextual(ContextualKeyword._out);
|
|
203
|
+
eat(tt._const);
|
|
204
|
+
if ((hadIn || hadOut) && !match(tt.name)) {
|
|
205
|
+
// The "in" or "out" keyword must have actually been the type parameter
|
|
206
|
+
// name, so set it as the name.
|
|
207
|
+
state.tokens[state.tokens.length - 1].type = tt.name;
|
|
208
|
+
} else {
|
|
209
|
+
parseIdentifier();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
if (eat(tt._extends)) {
|
|
213
|
+
tsParseType();
|
|
214
|
+
}
|
|
215
|
+
if (eat(tt.eq)) {
|
|
216
|
+
tsParseType();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export function tsTryParseTypeParameters() {
|
|
221
|
+
if (match(tt.lessThan)) {
|
|
222
|
+
tsParseTypeParameters();
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
function tsParseTypeParameters() {
|
|
227
|
+
const oldIsType = pushTypeContext(0);
|
|
228
|
+
if (match(tt.lessThan) || match(tt.typeParameterStart)) {
|
|
229
|
+
next();
|
|
230
|
+
} else {
|
|
231
|
+
unexpected();
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
while (!eat(tt.greaterThan) && !state.error) {
|
|
235
|
+
tsParseTypeParameter();
|
|
236
|
+
eat(tt.comma);
|
|
237
|
+
}
|
|
238
|
+
popTypeContext(oldIsType);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Note: In TypeScript implementation we must provide `yieldContext` and `awaitContext`,
|
|
242
|
+
// but here it's always false, because this is only used for types.
|
|
243
|
+
function tsFillSignature(returnToken) {
|
|
244
|
+
// Arrow fns *must* have return token (`=>`). Normal functions can omit it.
|
|
245
|
+
const returnTokenRequired = returnToken === tt.arrow;
|
|
246
|
+
tsTryParseTypeParameters();
|
|
247
|
+
expect(tt.parenL);
|
|
248
|
+
// Create a scope even though we're doing type parsing so we don't accidentally
|
|
249
|
+
// treat params as top-level bindings.
|
|
250
|
+
state.scopeDepth++;
|
|
251
|
+
tsParseBindingListForSignature(false /* isBlockScope */);
|
|
252
|
+
state.scopeDepth--;
|
|
253
|
+
if (returnTokenRequired) {
|
|
254
|
+
tsParseTypeOrTypePredicateAnnotation(returnToken);
|
|
255
|
+
} else if (match(returnToken)) {
|
|
256
|
+
tsParseTypeOrTypePredicateAnnotation(returnToken);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
function tsParseBindingListForSignature(isBlockScope) {
|
|
261
|
+
parseBindingList(tt.parenR, isBlockScope);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
function tsParseTypeMemberSemicolon() {
|
|
265
|
+
if (!eat(tt.comma)) {
|
|
266
|
+
semicolon();
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
function tsParseSignatureMember() {
|
|
271
|
+
tsFillSignature(tt.colon);
|
|
272
|
+
tsParseTypeMemberSemicolon();
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function tsIsUnambiguouslyIndexSignature() {
|
|
276
|
+
const snapshot = state.snapshot();
|
|
277
|
+
next(); // Skip '{'
|
|
278
|
+
const isIndexSignature = eat(tt.name) && match(tt.colon);
|
|
279
|
+
state.restoreFromSnapshot(snapshot);
|
|
280
|
+
return isIndexSignature;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
function tsTryParseIndexSignature() {
|
|
284
|
+
if (!(match(tt.bracketL) && tsIsUnambiguouslyIndexSignature())) {
|
|
285
|
+
return false;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
const oldIsType = pushTypeContext(0);
|
|
289
|
+
|
|
290
|
+
expect(tt.bracketL);
|
|
291
|
+
parseIdentifier();
|
|
292
|
+
tsParseTypeAnnotation();
|
|
293
|
+
expect(tt.bracketR);
|
|
294
|
+
|
|
295
|
+
tsTryParseTypeAnnotation();
|
|
296
|
+
tsParseTypeMemberSemicolon();
|
|
297
|
+
|
|
298
|
+
popTypeContext(oldIsType);
|
|
299
|
+
return true;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
function tsParsePropertyOrMethodSignature(isReadonly) {
|
|
303
|
+
eat(tt.question);
|
|
304
|
+
|
|
305
|
+
if (!isReadonly && (match(tt.parenL) || match(tt.lessThan))) {
|
|
306
|
+
tsFillSignature(tt.colon);
|
|
307
|
+
tsParseTypeMemberSemicolon();
|
|
308
|
+
} else {
|
|
309
|
+
tsTryParseTypeAnnotation();
|
|
310
|
+
tsParseTypeMemberSemicolon();
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function tsParseTypeMember() {
|
|
315
|
+
if (match(tt.parenL) || match(tt.lessThan)) {
|
|
316
|
+
// call signature
|
|
317
|
+
tsParseSignatureMember();
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
if (match(tt._new)) {
|
|
321
|
+
next();
|
|
322
|
+
if (match(tt.parenL) || match(tt.lessThan)) {
|
|
323
|
+
// constructor signature
|
|
324
|
+
tsParseSignatureMember();
|
|
325
|
+
} else {
|
|
326
|
+
tsParsePropertyOrMethodSignature(false);
|
|
327
|
+
}
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
const readonly = !!tsParseModifier([ContextualKeyword._readonly]);
|
|
331
|
+
|
|
332
|
+
const found = tsTryParseIndexSignature();
|
|
333
|
+
if (found) {
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
if (
|
|
337
|
+
(isContextual(ContextualKeyword._get) || isContextual(ContextualKeyword._set)) &&
|
|
338
|
+
tsNextTokenCanFollowModifier()
|
|
339
|
+
) {
|
|
340
|
+
// This is a getter/setter on a type. The tsNextTokenCanFollowModifier
|
|
341
|
+
// function already called next() for us, so continue parsing the name.
|
|
342
|
+
}
|
|
343
|
+
parsePropertyName(-1 /* Types don't need context IDs. */);
|
|
344
|
+
tsParsePropertyOrMethodSignature(readonly);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
function tsParseTypeLiteral() {
|
|
348
|
+
tsParseObjectTypeMembers();
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
function tsParseObjectTypeMembers() {
|
|
352
|
+
expect(tt.braceL);
|
|
353
|
+
while (!eat(tt.braceR) && !state.error) {
|
|
354
|
+
tsParseTypeMember();
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
function tsLookaheadIsStartOfMappedType() {
|
|
359
|
+
const snapshot = state.snapshot();
|
|
360
|
+
const isStartOfMappedType = tsIsStartOfMappedType();
|
|
361
|
+
state.restoreFromSnapshot(snapshot);
|
|
362
|
+
return isStartOfMappedType;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
function tsIsStartOfMappedType() {
|
|
366
|
+
next();
|
|
367
|
+
if (eat(tt.plus) || eat(tt.minus)) {
|
|
368
|
+
return isContextual(ContextualKeyword._readonly);
|
|
369
|
+
}
|
|
370
|
+
if (isContextual(ContextualKeyword._readonly)) {
|
|
371
|
+
next();
|
|
372
|
+
}
|
|
373
|
+
if (!match(tt.bracketL)) {
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
next();
|
|
377
|
+
if (!tsIsIdentifier()) {
|
|
378
|
+
return false;
|
|
379
|
+
}
|
|
380
|
+
next();
|
|
381
|
+
return match(tt._in);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
function tsParseMappedTypeParameter() {
|
|
385
|
+
parseIdentifier();
|
|
386
|
+
expect(tt._in);
|
|
387
|
+
tsParseType();
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
function tsParseMappedType() {
|
|
391
|
+
expect(tt.braceL);
|
|
392
|
+
if (match(tt.plus) || match(tt.minus)) {
|
|
393
|
+
next();
|
|
394
|
+
expectContextual(ContextualKeyword._readonly);
|
|
395
|
+
} else {
|
|
396
|
+
eatContextual(ContextualKeyword._readonly);
|
|
397
|
+
}
|
|
398
|
+
expect(tt.bracketL);
|
|
399
|
+
tsParseMappedTypeParameter();
|
|
400
|
+
if (eatContextual(ContextualKeyword._as)) {
|
|
401
|
+
tsParseType();
|
|
402
|
+
}
|
|
403
|
+
expect(tt.bracketR);
|
|
404
|
+
if (match(tt.plus) || match(tt.minus)) {
|
|
405
|
+
next();
|
|
406
|
+
expect(tt.question);
|
|
407
|
+
} else {
|
|
408
|
+
eat(tt.question);
|
|
409
|
+
}
|
|
410
|
+
tsTryParseType();
|
|
411
|
+
semicolon();
|
|
412
|
+
expect(tt.braceR);
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
function tsParseTupleType() {
|
|
416
|
+
expect(tt.bracketL);
|
|
417
|
+
while (!eat(tt.bracketR) && !state.error) {
|
|
418
|
+
// Do not validate presence of either none or only labeled elements
|
|
419
|
+
tsParseTupleElementType();
|
|
420
|
+
eat(tt.comma);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
function tsParseTupleElementType() {
|
|
425
|
+
// parses `...TsType[]`
|
|
426
|
+
if (eat(tt.ellipsis)) {
|
|
427
|
+
tsParseType();
|
|
428
|
+
} else {
|
|
429
|
+
// parses `TsType?`
|
|
430
|
+
tsParseType();
|
|
431
|
+
eat(tt.question);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
// The type we parsed above was actually a label
|
|
435
|
+
if (eat(tt.colon)) {
|
|
436
|
+
// Labeled tuple types must affix the label with `...` or `?`, so no need to handle those here
|
|
437
|
+
tsParseType();
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
function tsParseParenthesizedType() {
|
|
442
|
+
expect(tt.parenL);
|
|
443
|
+
tsParseType();
|
|
444
|
+
expect(tt.parenR);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
function tsParseTemplateLiteralType() {
|
|
448
|
+
// Finish `, read quasi
|
|
449
|
+
nextTemplateToken();
|
|
450
|
+
// Finish quasi, read ${
|
|
451
|
+
nextTemplateToken();
|
|
452
|
+
while (!match(tt.backQuote) && !state.error) {
|
|
453
|
+
expect(tt.dollarBraceL);
|
|
454
|
+
tsParseType();
|
|
455
|
+
// Finish }, read quasi
|
|
456
|
+
nextTemplateToken();
|
|
457
|
+
// Finish quasi, read either ${ or `
|
|
458
|
+
nextTemplateToken();
|
|
459
|
+
}
|
|
460
|
+
next();
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
var FunctionType; (function (FunctionType) {
|
|
464
|
+
const TSFunctionType = 0; FunctionType[FunctionType["TSFunctionType"] = TSFunctionType] = "TSFunctionType";
|
|
465
|
+
const TSConstructorType = TSFunctionType + 1; FunctionType[FunctionType["TSConstructorType"] = TSConstructorType] = "TSConstructorType";
|
|
466
|
+
const TSAbstractConstructorType = TSConstructorType + 1; FunctionType[FunctionType["TSAbstractConstructorType"] = TSAbstractConstructorType] = "TSAbstractConstructorType";
|
|
467
|
+
})(FunctionType || (FunctionType = {}));
|
|
468
|
+
|
|
469
|
+
function tsParseFunctionOrConstructorType(type) {
|
|
470
|
+
if (type === FunctionType.TSAbstractConstructorType) {
|
|
471
|
+
expectContextual(ContextualKeyword._abstract);
|
|
472
|
+
}
|
|
473
|
+
if (type === FunctionType.TSConstructorType || type === FunctionType.TSAbstractConstructorType) {
|
|
474
|
+
expect(tt._new);
|
|
475
|
+
}
|
|
476
|
+
const oldInDisallowConditionalTypesContext = state.inDisallowConditionalTypesContext;
|
|
477
|
+
state.inDisallowConditionalTypesContext = false;
|
|
478
|
+
tsFillSignature(tt.arrow);
|
|
479
|
+
state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
function tsParseNonArrayType() {
|
|
483
|
+
switch (state.type) {
|
|
484
|
+
case tt.name:
|
|
485
|
+
tsParseTypeReference();
|
|
486
|
+
return;
|
|
487
|
+
case tt._void:
|
|
488
|
+
case tt._null:
|
|
489
|
+
next();
|
|
490
|
+
return;
|
|
491
|
+
case tt.string:
|
|
492
|
+
case tt.num:
|
|
493
|
+
case tt.bigint:
|
|
494
|
+
case tt.decimal:
|
|
495
|
+
case tt._true:
|
|
496
|
+
case tt._false:
|
|
497
|
+
parseLiteral();
|
|
498
|
+
return;
|
|
499
|
+
case tt.minus:
|
|
500
|
+
next();
|
|
501
|
+
parseLiteral();
|
|
502
|
+
return;
|
|
503
|
+
case tt._this: {
|
|
504
|
+
tsParseThisTypeNode();
|
|
505
|
+
if (isContextual(ContextualKeyword._is) && !hasPrecedingLineBreak()) {
|
|
506
|
+
tsParseThisTypePredicate();
|
|
507
|
+
}
|
|
508
|
+
return;
|
|
509
|
+
}
|
|
510
|
+
case tt._typeof:
|
|
511
|
+
tsParseTypeQuery();
|
|
512
|
+
return;
|
|
513
|
+
case tt._import:
|
|
514
|
+
tsParseImportType();
|
|
515
|
+
return;
|
|
516
|
+
case tt.braceL:
|
|
517
|
+
if (tsLookaheadIsStartOfMappedType()) {
|
|
518
|
+
tsParseMappedType();
|
|
519
|
+
} else {
|
|
520
|
+
tsParseTypeLiteral();
|
|
521
|
+
}
|
|
522
|
+
return;
|
|
523
|
+
case tt.bracketL:
|
|
524
|
+
tsParseTupleType();
|
|
525
|
+
return;
|
|
526
|
+
case tt.parenL:
|
|
527
|
+
tsParseParenthesizedType();
|
|
528
|
+
return;
|
|
529
|
+
case tt.backQuote:
|
|
530
|
+
tsParseTemplateLiteralType();
|
|
531
|
+
return;
|
|
532
|
+
default:
|
|
533
|
+
if (state.type & TokenType.IS_KEYWORD) {
|
|
534
|
+
next();
|
|
535
|
+
state.tokens[state.tokens.length - 1].type = tt.name;
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
break;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
unexpected();
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
function tsParseArrayTypeOrHigher() {
|
|
545
|
+
tsParseNonArrayType();
|
|
546
|
+
while (!hasPrecedingLineBreak() && eat(tt.bracketL)) {
|
|
547
|
+
if (!eat(tt.bracketR)) {
|
|
548
|
+
// If we hit ] immediately, this is an array type, otherwise it's an indexed access type.
|
|
549
|
+
tsParseType();
|
|
550
|
+
expect(tt.bracketR);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
function tsParseInferType() {
|
|
556
|
+
expectContextual(ContextualKeyword._infer);
|
|
557
|
+
parseIdentifier();
|
|
558
|
+
if (match(tt._extends)) {
|
|
559
|
+
// Infer type constraints introduce an ambiguity about whether the "extends"
|
|
560
|
+
// is a constraint for this infer type or is another conditional type.
|
|
561
|
+
const snapshot = state.snapshot();
|
|
562
|
+
expect(tt._extends);
|
|
563
|
+
const oldInDisallowConditionalTypesContext = state.inDisallowConditionalTypesContext;
|
|
564
|
+
state.inDisallowConditionalTypesContext = true;
|
|
565
|
+
tsParseType();
|
|
566
|
+
state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;
|
|
567
|
+
if (state.error || (!state.inDisallowConditionalTypesContext && match(tt.question))) {
|
|
568
|
+
state.restoreFromSnapshot(snapshot);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
function tsParseTypeOperatorOrHigher() {
|
|
574
|
+
if (
|
|
575
|
+
isContextual(ContextualKeyword._keyof) ||
|
|
576
|
+
isContextual(ContextualKeyword._unique) ||
|
|
577
|
+
isContextual(ContextualKeyword._readonly)
|
|
578
|
+
) {
|
|
579
|
+
next();
|
|
580
|
+
tsParseTypeOperatorOrHigher();
|
|
581
|
+
} else if (isContextual(ContextualKeyword._infer)) {
|
|
582
|
+
tsParseInferType();
|
|
583
|
+
} else {
|
|
584
|
+
const oldInDisallowConditionalTypesContext = state.inDisallowConditionalTypesContext;
|
|
585
|
+
state.inDisallowConditionalTypesContext = false;
|
|
586
|
+
tsParseArrayTypeOrHigher();
|
|
587
|
+
state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
function tsParseIntersectionTypeOrHigher() {
|
|
592
|
+
eat(tt.bitwiseAND);
|
|
593
|
+
tsParseTypeOperatorOrHigher();
|
|
594
|
+
if (match(tt.bitwiseAND)) {
|
|
595
|
+
while (eat(tt.bitwiseAND)) {
|
|
596
|
+
tsParseTypeOperatorOrHigher();
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
function tsParseUnionTypeOrHigher() {
|
|
602
|
+
eat(tt.bitwiseOR);
|
|
603
|
+
tsParseIntersectionTypeOrHigher();
|
|
604
|
+
if (match(tt.bitwiseOR)) {
|
|
605
|
+
while (eat(tt.bitwiseOR)) {
|
|
606
|
+
tsParseIntersectionTypeOrHigher();
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
function tsIsStartOfFunctionType() {
|
|
612
|
+
if (match(tt.lessThan)) {
|
|
613
|
+
return true;
|
|
614
|
+
}
|
|
615
|
+
return match(tt.parenL) && tsLookaheadIsUnambiguouslyStartOfFunctionType();
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
function tsSkipParameterStart() {
|
|
619
|
+
if (match(tt.name) || match(tt._this)) {
|
|
620
|
+
next();
|
|
621
|
+
return true;
|
|
622
|
+
}
|
|
623
|
+
// If this is a possible array/object destructure, walk to the matching bracket/brace.
|
|
624
|
+
// The next token after will tell us definitively whether this is a function param.
|
|
625
|
+
if (match(tt.braceL) || match(tt.bracketL)) {
|
|
626
|
+
let depth = 1;
|
|
627
|
+
next();
|
|
628
|
+
while (depth > 0 && !state.error) {
|
|
629
|
+
if (match(tt.braceL) || match(tt.bracketL)) {
|
|
630
|
+
depth++;
|
|
631
|
+
} else if (match(tt.braceR) || match(tt.bracketR)) {
|
|
632
|
+
depth--;
|
|
633
|
+
}
|
|
634
|
+
next();
|
|
635
|
+
}
|
|
636
|
+
return true;
|
|
637
|
+
}
|
|
638
|
+
return false;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
function tsLookaheadIsUnambiguouslyStartOfFunctionType() {
|
|
642
|
+
const snapshot = state.snapshot();
|
|
643
|
+
const isUnambiguouslyStartOfFunctionType = tsIsUnambiguouslyStartOfFunctionType();
|
|
644
|
+
state.restoreFromSnapshot(snapshot);
|
|
645
|
+
return isUnambiguouslyStartOfFunctionType;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
function tsIsUnambiguouslyStartOfFunctionType() {
|
|
649
|
+
next();
|
|
650
|
+
if (match(tt.parenR) || match(tt.ellipsis)) {
|
|
651
|
+
// ( )
|
|
652
|
+
// ( ...
|
|
653
|
+
return true;
|
|
654
|
+
}
|
|
655
|
+
if (tsSkipParameterStart()) {
|
|
656
|
+
if (match(tt.colon) || match(tt.comma) || match(tt.question) || match(tt.eq)) {
|
|
657
|
+
// ( xxx :
|
|
658
|
+
// ( xxx ,
|
|
659
|
+
// ( xxx ?
|
|
660
|
+
// ( xxx =
|
|
661
|
+
return true;
|
|
662
|
+
}
|
|
663
|
+
if (match(tt.parenR)) {
|
|
664
|
+
next();
|
|
665
|
+
if (match(tt.arrow)) {
|
|
666
|
+
// ( xxx ) =>
|
|
667
|
+
return true;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
return false;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
function tsParseTypeOrTypePredicateAnnotation(returnToken) {
|
|
675
|
+
const oldIsType = pushTypeContext(0);
|
|
676
|
+
expect(returnToken);
|
|
677
|
+
const finishedReturn = tsParseTypePredicateOrAssertsPrefix();
|
|
678
|
+
if (!finishedReturn) {
|
|
679
|
+
tsParseType();
|
|
680
|
+
}
|
|
681
|
+
popTypeContext(oldIsType);
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
function tsTryParseTypeOrTypePredicateAnnotation() {
|
|
685
|
+
if (match(tt.colon)) {
|
|
686
|
+
tsParseTypeOrTypePredicateAnnotation(tt.colon);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
export function tsTryParseTypeAnnotation() {
|
|
691
|
+
if (match(tt.colon)) {
|
|
692
|
+
tsParseTypeAnnotation();
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
function tsTryParseType() {
|
|
697
|
+
if (eat(tt.colon)) {
|
|
698
|
+
tsParseType();
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Detect a few special return syntax cases: `x is T`, `asserts x`, `asserts x is T`,
|
|
704
|
+
* `asserts this is T`.
|
|
705
|
+
*
|
|
706
|
+
* Returns true if we parsed the return type, false if there's still a type to be parsed.
|
|
707
|
+
*/
|
|
708
|
+
function tsParseTypePredicateOrAssertsPrefix() {
|
|
709
|
+
const snapshot = state.snapshot();
|
|
710
|
+
if (isContextual(ContextualKeyword._asserts)) {
|
|
711
|
+
// Normally this is `asserts x is T`, but at this point, it might be `asserts is T` (a user-
|
|
712
|
+
// defined type guard on the `asserts` variable) or just a type called `asserts`.
|
|
713
|
+
next();
|
|
714
|
+
if (eatContextual(ContextualKeyword._is)) {
|
|
715
|
+
// If we see `asserts is`, then this must be of the form `asserts is T`, since
|
|
716
|
+
// `asserts is is T` isn't valid.
|
|
717
|
+
tsParseType();
|
|
718
|
+
return true;
|
|
719
|
+
} else if (tsIsIdentifier() || match(tt._this)) {
|
|
720
|
+
next();
|
|
721
|
+
if (eatContextual(ContextualKeyword._is)) {
|
|
722
|
+
// If we see `is`, then this is `asserts x is T`. Otherwise, it's `asserts x`.
|
|
723
|
+
tsParseType();
|
|
724
|
+
}
|
|
725
|
+
return true;
|
|
726
|
+
} else {
|
|
727
|
+
// Regular type, so bail out and start type parsing from scratch.
|
|
728
|
+
state.restoreFromSnapshot(snapshot);
|
|
729
|
+
return false;
|
|
730
|
+
}
|
|
731
|
+
} else if (tsIsIdentifier() || match(tt._this)) {
|
|
732
|
+
// This is a regular identifier, which may or may not have "is" after it.
|
|
733
|
+
next();
|
|
734
|
+
if (isContextual(ContextualKeyword._is) && !hasPrecedingLineBreak()) {
|
|
735
|
+
next();
|
|
736
|
+
tsParseType();
|
|
737
|
+
return true;
|
|
738
|
+
} else {
|
|
739
|
+
// Regular type, so bail out and start type parsing from scratch.
|
|
740
|
+
state.restoreFromSnapshot(snapshot);
|
|
741
|
+
return false;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
return false;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
export function tsParseTypeAnnotation() {
|
|
748
|
+
const oldIsType = pushTypeContext(0);
|
|
749
|
+
expect(tt.colon);
|
|
750
|
+
tsParseType();
|
|
751
|
+
popTypeContext(oldIsType);
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
export function tsParseType() {
|
|
755
|
+
tsParseNonConditionalType();
|
|
756
|
+
if (state.inDisallowConditionalTypesContext || hasPrecedingLineBreak() || !eat(tt._extends)) {
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
// extends type
|
|
760
|
+
const oldInDisallowConditionalTypesContext = state.inDisallowConditionalTypesContext;
|
|
761
|
+
state.inDisallowConditionalTypesContext = true;
|
|
762
|
+
tsParseNonConditionalType();
|
|
763
|
+
state.inDisallowConditionalTypesContext = oldInDisallowConditionalTypesContext;
|
|
764
|
+
|
|
765
|
+
expect(tt.question);
|
|
766
|
+
// true type
|
|
767
|
+
tsParseType();
|
|
768
|
+
expect(tt.colon);
|
|
769
|
+
// false type
|
|
770
|
+
tsParseType();
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
function isAbstractConstructorSignature() {
|
|
774
|
+
return isContextual(ContextualKeyword._abstract) && lookaheadType() === tt._new;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
export function tsParseNonConditionalType() {
|
|
778
|
+
if (tsIsStartOfFunctionType()) {
|
|
779
|
+
tsParseFunctionOrConstructorType(FunctionType.TSFunctionType);
|
|
780
|
+
return;
|
|
781
|
+
}
|
|
782
|
+
if (match(tt._new)) {
|
|
783
|
+
// As in `new () => Date`
|
|
784
|
+
tsParseFunctionOrConstructorType(FunctionType.TSConstructorType);
|
|
785
|
+
return;
|
|
786
|
+
} else if (isAbstractConstructorSignature()) {
|
|
787
|
+
// As in `abstract new () => Date`
|
|
788
|
+
tsParseFunctionOrConstructorType(FunctionType.TSAbstractConstructorType);
|
|
789
|
+
return;
|
|
790
|
+
}
|
|
791
|
+
tsParseUnionTypeOrHigher();
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export function tsParseTypeAssertion() {
|
|
795
|
+
const oldIsType = pushTypeContext(1);
|
|
796
|
+
tsParseType();
|
|
797
|
+
expect(tt.greaterThan);
|
|
798
|
+
popTypeContext(oldIsType);
|
|
799
|
+
parseMaybeUnary();
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export function tsTryParseJSXTypeArgument() {
|
|
803
|
+
if (eat(tt.jsxTagStart)) {
|
|
804
|
+
state.tokens[state.tokens.length - 1].type = tt.typeParameterStart;
|
|
805
|
+
const oldIsType = pushTypeContext(1);
|
|
806
|
+
while (!match(tt.greaterThan) && !state.error) {
|
|
807
|
+
tsParseType();
|
|
808
|
+
eat(tt.comma);
|
|
809
|
+
}
|
|
810
|
+
// Process >, but the one after needs to be parsed JSX-style.
|
|
811
|
+
nextJSXTagToken();
|
|
812
|
+
popTypeContext(oldIsType);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
function tsParseHeritageClause() {
|
|
817
|
+
while (!match(tt.braceL) && !state.error) {
|
|
818
|
+
tsParseExpressionWithTypeArguments();
|
|
819
|
+
eat(tt.comma);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
function tsParseExpressionWithTypeArguments() {
|
|
824
|
+
// Note: TS uses parseLeftHandSideExpressionOrHigher,
|
|
825
|
+
// then has grammar errors later if it's not an EntityName.
|
|
826
|
+
tsParseEntityName();
|
|
827
|
+
if (match(tt.lessThan)) {
|
|
828
|
+
tsParseTypeArguments();
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
function tsParseInterfaceDeclaration() {
|
|
833
|
+
parseBindingIdentifier(false);
|
|
834
|
+
tsTryParseTypeParameters();
|
|
835
|
+
if (eat(tt._extends)) {
|
|
836
|
+
tsParseHeritageClause();
|
|
837
|
+
}
|
|
838
|
+
tsParseObjectTypeMembers();
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
function tsParseTypeAliasDeclaration() {
|
|
842
|
+
parseBindingIdentifier(false);
|
|
843
|
+
tsTryParseTypeParameters();
|
|
844
|
+
expect(tt.eq);
|
|
845
|
+
tsParseType();
|
|
846
|
+
semicolon();
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
function tsParseEnumMember() {
|
|
850
|
+
// Computed property names are grammar errors in an enum, so accept just string literal or identifier.
|
|
851
|
+
if (match(tt.string)) {
|
|
852
|
+
parseLiteral();
|
|
853
|
+
} else {
|
|
854
|
+
parseIdentifier();
|
|
855
|
+
}
|
|
856
|
+
if (eat(tt.eq)) {
|
|
857
|
+
const eqIndex = state.tokens.length - 1;
|
|
858
|
+
parseMaybeAssign();
|
|
859
|
+
state.tokens[eqIndex].rhsEndIndex = state.tokens.length;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
function tsParseEnumDeclaration() {
|
|
864
|
+
parseBindingIdentifier(false);
|
|
865
|
+
expect(tt.braceL);
|
|
866
|
+
while (!eat(tt.braceR) && !state.error) {
|
|
867
|
+
tsParseEnumMember();
|
|
868
|
+
eat(tt.comma);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
function tsParseModuleBlock() {
|
|
873
|
+
expect(tt.braceL);
|
|
874
|
+
parseBlockBody(/* end */ tt.braceR);
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
function tsParseModuleOrNamespaceDeclaration() {
|
|
878
|
+
parseBindingIdentifier(false);
|
|
879
|
+
if (eat(tt.dot)) {
|
|
880
|
+
tsParseModuleOrNamespaceDeclaration();
|
|
881
|
+
} else {
|
|
882
|
+
tsParseModuleBlock();
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
function tsParseAmbientExternalModuleDeclaration() {
|
|
887
|
+
if (isContextual(ContextualKeyword._global)) {
|
|
888
|
+
parseIdentifier();
|
|
889
|
+
} else if (match(tt.string)) {
|
|
890
|
+
parseExprAtom();
|
|
891
|
+
} else {
|
|
892
|
+
unexpected();
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
if (match(tt.braceL)) {
|
|
896
|
+
tsParseModuleBlock();
|
|
897
|
+
} else {
|
|
898
|
+
semicolon();
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export function tsParseImportEqualsDeclaration() {
|
|
903
|
+
parseImportedIdentifier();
|
|
904
|
+
expect(tt.eq);
|
|
905
|
+
tsParseModuleReference();
|
|
906
|
+
semicolon();
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
function tsIsExternalModuleReference() {
|
|
910
|
+
return isContextual(ContextualKeyword._require) && lookaheadType() === tt.parenL;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
function tsParseModuleReference() {
|
|
914
|
+
if (tsIsExternalModuleReference()) {
|
|
915
|
+
tsParseExternalModuleReference();
|
|
916
|
+
} else {
|
|
917
|
+
tsParseEntityName();
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
function tsParseExternalModuleReference() {
|
|
922
|
+
expectContextual(ContextualKeyword._require);
|
|
923
|
+
expect(tt.parenL);
|
|
924
|
+
if (!match(tt.string)) {
|
|
925
|
+
unexpected();
|
|
926
|
+
}
|
|
927
|
+
parseLiteral();
|
|
928
|
+
expect(tt.parenR);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
// Utilities
|
|
932
|
+
|
|
933
|
+
// Returns true if a statement matched.
|
|
934
|
+
function tsTryParseDeclare() {
|
|
935
|
+
if (isLineTerminator()) {
|
|
936
|
+
return false;
|
|
937
|
+
}
|
|
938
|
+
switch (state.type) {
|
|
939
|
+
case tt._function: {
|
|
940
|
+
const oldIsType = pushTypeContext(1);
|
|
941
|
+
next();
|
|
942
|
+
// We don't need to precisely get the function start here, since it's only used to mark
|
|
943
|
+
// the function as a type if it's bodiless, and it's already a type here.
|
|
944
|
+
const functionStart = state.start;
|
|
945
|
+
parseFunction(functionStart, /* isStatement */ true);
|
|
946
|
+
popTypeContext(oldIsType);
|
|
947
|
+
return true;
|
|
948
|
+
}
|
|
949
|
+
case tt._class: {
|
|
950
|
+
const oldIsType = pushTypeContext(1);
|
|
951
|
+
parseClass(/* isStatement */ true, /* optionalId */ false);
|
|
952
|
+
popTypeContext(oldIsType);
|
|
953
|
+
return true;
|
|
954
|
+
}
|
|
955
|
+
case tt._const: {
|
|
956
|
+
if (match(tt._const) && isLookaheadContextual(ContextualKeyword._enum)) {
|
|
957
|
+
const oldIsType = pushTypeContext(1);
|
|
958
|
+
// `const enum = 0;` not allowed because "enum" is a strict mode reserved word.
|
|
959
|
+
expect(tt._const);
|
|
960
|
+
expectContextual(ContextualKeyword._enum);
|
|
961
|
+
state.tokens[state.tokens.length - 1].type = tt._enum;
|
|
962
|
+
tsParseEnumDeclaration();
|
|
963
|
+
popTypeContext(oldIsType);
|
|
964
|
+
return true;
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
// falls through
|
|
968
|
+
case tt._var:
|
|
969
|
+
case tt._let: {
|
|
970
|
+
const oldIsType = pushTypeContext(1);
|
|
971
|
+
parseVarStatement(state.type !== tt._var);
|
|
972
|
+
popTypeContext(oldIsType);
|
|
973
|
+
return true;
|
|
974
|
+
}
|
|
975
|
+
case tt.name: {
|
|
976
|
+
const oldIsType = pushTypeContext(1);
|
|
977
|
+
const contextualKeyword = state.contextualKeyword;
|
|
978
|
+
let matched = false;
|
|
979
|
+
if (contextualKeyword === ContextualKeyword._global) {
|
|
980
|
+
tsParseAmbientExternalModuleDeclaration();
|
|
981
|
+
matched = true;
|
|
982
|
+
} else {
|
|
983
|
+
matched = tsParseDeclaration(contextualKeyword, /* isBeforeToken */ true);
|
|
984
|
+
}
|
|
985
|
+
popTypeContext(oldIsType);
|
|
986
|
+
return matched;
|
|
987
|
+
}
|
|
988
|
+
default:
|
|
989
|
+
return false;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
// Note: this won't be called unless the keyword is allowed in `shouldParseExportDeclaration`.
|
|
994
|
+
// Returns true if it matched a declaration.
|
|
995
|
+
function tsTryParseExportDeclaration() {
|
|
996
|
+
return tsParseDeclaration(state.contextualKeyword, /* isBeforeToken */ true);
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
// Returns true if it matched a statement.
|
|
1000
|
+
function tsParseExpressionStatement(contextualKeyword) {
|
|
1001
|
+
switch (contextualKeyword) {
|
|
1002
|
+
case ContextualKeyword._declare: {
|
|
1003
|
+
const declareTokenIndex = state.tokens.length - 1;
|
|
1004
|
+
const matched = tsTryParseDeclare();
|
|
1005
|
+
if (matched) {
|
|
1006
|
+
state.tokens[declareTokenIndex].type = tt._declare;
|
|
1007
|
+
return true;
|
|
1008
|
+
}
|
|
1009
|
+
break;
|
|
1010
|
+
}
|
|
1011
|
+
case ContextualKeyword._global:
|
|
1012
|
+
// `global { }` (with no `declare`) may appear inside an ambient module declaration.
|
|
1013
|
+
// Would like to use tsParseAmbientExternalModuleDeclaration here, but already ran past "global".
|
|
1014
|
+
if (match(tt.braceL)) {
|
|
1015
|
+
tsParseModuleBlock();
|
|
1016
|
+
return true;
|
|
1017
|
+
}
|
|
1018
|
+
break;
|
|
1019
|
+
|
|
1020
|
+
default:
|
|
1021
|
+
return tsParseDeclaration(contextualKeyword, /* isBeforeToken */ false);
|
|
1022
|
+
}
|
|
1023
|
+
return false;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* Common code for parsing a declaration.
|
|
1028
|
+
*
|
|
1029
|
+
* isBeforeToken indicates that the current parser state is at the contextual
|
|
1030
|
+
* keyword (and that it is not yet emitted) rather than reading the token after
|
|
1031
|
+
* it. When isBeforeToken is true, we may be preceded by an `export` token and
|
|
1032
|
+
* should include that token in a type context we create, e.g. to handle
|
|
1033
|
+
* `export interface` or `export type`. (This is a bit of a hack and should be
|
|
1034
|
+
* cleaned up at some point.)
|
|
1035
|
+
*
|
|
1036
|
+
* Returns true if it matched a declaration.
|
|
1037
|
+
*/
|
|
1038
|
+
function tsParseDeclaration(contextualKeyword, isBeforeToken) {
|
|
1039
|
+
switch (contextualKeyword) {
|
|
1040
|
+
case ContextualKeyword._abstract:
|
|
1041
|
+
if (tsCheckLineTerminator(isBeforeToken) && match(tt._class)) {
|
|
1042
|
+
state.tokens[state.tokens.length - 1].type = tt._abstract;
|
|
1043
|
+
parseClass(/* isStatement */ true, /* optionalId */ false);
|
|
1044
|
+
return true;
|
|
1045
|
+
}
|
|
1046
|
+
break;
|
|
1047
|
+
|
|
1048
|
+
case ContextualKeyword._enum:
|
|
1049
|
+
if (tsCheckLineTerminator(isBeforeToken) && match(tt.name)) {
|
|
1050
|
+
state.tokens[state.tokens.length - 1].type = tt._enum;
|
|
1051
|
+
tsParseEnumDeclaration();
|
|
1052
|
+
return true;
|
|
1053
|
+
}
|
|
1054
|
+
break;
|
|
1055
|
+
|
|
1056
|
+
case ContextualKeyword._interface:
|
|
1057
|
+
if (tsCheckLineTerminator(isBeforeToken) && match(tt.name)) {
|
|
1058
|
+
// `next` is true in "export" and "declare" contexts, so we want to remove that token
|
|
1059
|
+
// as well.
|
|
1060
|
+
const oldIsType = pushTypeContext(isBeforeToken ? 2 : 1);
|
|
1061
|
+
tsParseInterfaceDeclaration();
|
|
1062
|
+
popTypeContext(oldIsType);
|
|
1063
|
+
return true;
|
|
1064
|
+
}
|
|
1065
|
+
break;
|
|
1066
|
+
|
|
1067
|
+
case ContextualKeyword._module:
|
|
1068
|
+
if (tsCheckLineTerminator(isBeforeToken)) {
|
|
1069
|
+
if (match(tt.string)) {
|
|
1070
|
+
const oldIsType = pushTypeContext(isBeforeToken ? 2 : 1);
|
|
1071
|
+
tsParseAmbientExternalModuleDeclaration();
|
|
1072
|
+
popTypeContext(oldIsType);
|
|
1073
|
+
return true;
|
|
1074
|
+
} else if (match(tt.name)) {
|
|
1075
|
+
const oldIsType = pushTypeContext(isBeforeToken ? 2 : 1);
|
|
1076
|
+
tsParseModuleOrNamespaceDeclaration();
|
|
1077
|
+
popTypeContext(oldIsType);
|
|
1078
|
+
return true;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
break;
|
|
1082
|
+
|
|
1083
|
+
case ContextualKeyword._namespace:
|
|
1084
|
+
if (tsCheckLineTerminator(isBeforeToken) && match(tt.name)) {
|
|
1085
|
+
const oldIsType = pushTypeContext(isBeforeToken ? 2 : 1);
|
|
1086
|
+
tsParseModuleOrNamespaceDeclaration();
|
|
1087
|
+
popTypeContext(oldIsType);
|
|
1088
|
+
return true;
|
|
1089
|
+
}
|
|
1090
|
+
break;
|
|
1091
|
+
|
|
1092
|
+
case ContextualKeyword._type:
|
|
1093
|
+
if (tsCheckLineTerminator(isBeforeToken) && match(tt.name)) {
|
|
1094
|
+
const oldIsType = pushTypeContext(isBeforeToken ? 2 : 1);
|
|
1095
|
+
tsParseTypeAliasDeclaration();
|
|
1096
|
+
popTypeContext(oldIsType);
|
|
1097
|
+
return true;
|
|
1098
|
+
}
|
|
1099
|
+
break;
|
|
1100
|
+
|
|
1101
|
+
default:
|
|
1102
|
+
break;
|
|
1103
|
+
}
|
|
1104
|
+
return false;
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
function tsCheckLineTerminator(isBeforeToken) {
|
|
1108
|
+
if (isBeforeToken) {
|
|
1109
|
+
// Babel checks hasFollowingLineBreak here and returns false, but this
|
|
1110
|
+
// doesn't actually come up, e.g. `export interface` can never be on its own
|
|
1111
|
+
// line in valid code.
|
|
1112
|
+
next();
|
|
1113
|
+
return true;
|
|
1114
|
+
} else {
|
|
1115
|
+
return !isLineTerminator();
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
// Returns true if there was a generic async arrow function.
|
|
1120
|
+
function tsTryParseGenericAsyncArrowFunction() {
|
|
1121
|
+
const snapshot = state.snapshot();
|
|
1122
|
+
|
|
1123
|
+
tsParseTypeParameters();
|
|
1124
|
+
parseFunctionParams();
|
|
1125
|
+
tsTryParseTypeOrTypePredicateAnnotation();
|
|
1126
|
+
expect(tt.arrow);
|
|
1127
|
+
|
|
1128
|
+
if (state.error) {
|
|
1129
|
+
state.restoreFromSnapshot(snapshot);
|
|
1130
|
+
return false;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
parseFunctionBody(true);
|
|
1134
|
+
return true;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* If necessary, hack the tokenizer state so that this bitshift was actually a
|
|
1139
|
+
* less-than token, then keep parsing. This should only be used in situations
|
|
1140
|
+
* where we restore from snapshot on error (which reverts this change) or
|
|
1141
|
+
* where bitshift would be illegal anyway (e.g. in a class "extends" clause).
|
|
1142
|
+
*
|
|
1143
|
+
* This hack is useful to handle situations like foo<<T>() => void>() where
|
|
1144
|
+
* there can legitimately be two open-angle-brackets in a row in TS.
|
|
1145
|
+
*/
|
|
1146
|
+
function tsParseTypeArgumentsWithPossibleBitshift() {
|
|
1147
|
+
if (state.type === tt.bitShiftL) {
|
|
1148
|
+
state.pos -= 1;
|
|
1149
|
+
finishToken(tt.lessThan);
|
|
1150
|
+
}
|
|
1151
|
+
tsParseTypeArguments();
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1154
|
+
function tsParseTypeArguments() {
|
|
1155
|
+
const oldIsType = pushTypeContext(0);
|
|
1156
|
+
expect(tt.lessThan);
|
|
1157
|
+
while (!match(tt.greaterThan) && !state.error) {
|
|
1158
|
+
tsParseType();
|
|
1159
|
+
eat(tt.comma);
|
|
1160
|
+
}
|
|
1161
|
+
if (!oldIsType) {
|
|
1162
|
+
// If the type arguments are present in an expression context, e.g.
|
|
1163
|
+
// f<number>(), then the > sign should be tokenized as a non-type token.
|
|
1164
|
+
// In particular, f(a < b, c >= d) should parse the >= as a single token,
|
|
1165
|
+
// resulting in a syntax error and fallback to the non-type-args
|
|
1166
|
+
// interpretation. In the success case, even though the > is tokenized as a
|
|
1167
|
+
// non-type token, it still must be marked as a type token so that it is
|
|
1168
|
+
// erased.
|
|
1169
|
+
popTypeContext(oldIsType);
|
|
1170
|
+
rescan_gt();
|
|
1171
|
+
expect(tt.greaterThan);
|
|
1172
|
+
state.tokens[state.tokens.length - 1].isType = true;
|
|
1173
|
+
} else {
|
|
1174
|
+
expect(tt.greaterThan);
|
|
1175
|
+
popTypeContext(oldIsType);
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
export function tsIsDeclarationStart() {
|
|
1180
|
+
if (match(tt.name)) {
|
|
1181
|
+
switch (state.contextualKeyword) {
|
|
1182
|
+
case ContextualKeyword._abstract:
|
|
1183
|
+
case ContextualKeyword._declare:
|
|
1184
|
+
case ContextualKeyword._enum:
|
|
1185
|
+
case ContextualKeyword._interface:
|
|
1186
|
+
case ContextualKeyword._module:
|
|
1187
|
+
case ContextualKeyword._namespace:
|
|
1188
|
+
case ContextualKeyword._type:
|
|
1189
|
+
return true;
|
|
1190
|
+
default:
|
|
1191
|
+
break;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
return false;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
// ======================================================
|
|
1199
|
+
// OVERRIDES
|
|
1200
|
+
// ======================================================
|
|
1201
|
+
|
|
1202
|
+
export function tsParseFunctionBodyAndFinish(functionStart, funcContextId) {
|
|
1203
|
+
// For arrow functions, `parseArrow` handles the return type itself.
|
|
1204
|
+
if (match(tt.colon)) {
|
|
1205
|
+
tsParseTypeOrTypePredicateAnnotation(tt.colon);
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
// The original code checked the node type to make sure this function type allows a missing
|
|
1209
|
+
// body, but we skip that to avoid sending around the node type. We instead just use the
|
|
1210
|
+
// allowExpressionBody boolean to make sure it's not an arrow function.
|
|
1211
|
+
if (!match(tt.braceL) && isLineTerminator()) {
|
|
1212
|
+
// Retroactively mark the function declaration as a type.
|
|
1213
|
+
let i = state.tokens.length - 1;
|
|
1214
|
+
while (
|
|
1215
|
+
i >= 0 &&
|
|
1216
|
+
(state.tokens[i].start >= functionStart ||
|
|
1217
|
+
state.tokens[i].type === tt._default ||
|
|
1218
|
+
state.tokens[i].type === tt._export)
|
|
1219
|
+
) {
|
|
1220
|
+
state.tokens[i].isType = true;
|
|
1221
|
+
i--;
|
|
1222
|
+
}
|
|
1223
|
+
return;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
parseFunctionBody(false, funcContextId);
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
export function tsParseSubscript(
|
|
1230
|
+
startTokenIndex,
|
|
1231
|
+
noCalls,
|
|
1232
|
+
stopState,
|
|
1233
|
+
) {
|
|
1234
|
+
if (!hasPrecedingLineBreak() && eat(tt.bang)) {
|
|
1235
|
+
state.tokens[state.tokens.length - 1].type = tt.nonNullAssertion;
|
|
1236
|
+
return;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
if (match(tt.lessThan) || match(tt.bitShiftL)) {
|
|
1240
|
+
// There are number of things we are going to "maybe" parse, like type arguments on
|
|
1241
|
+
// tagged template expressions. If any of them fail, walk it back and continue.
|
|
1242
|
+
const snapshot = state.snapshot();
|
|
1243
|
+
|
|
1244
|
+
if (!noCalls && atPossibleAsync()) {
|
|
1245
|
+
// Almost certainly this is a generic async function `async <T>() => ...
|
|
1246
|
+
// But it might be a call with a type argument `async<T>();`
|
|
1247
|
+
const asyncArrowFn = tsTryParseGenericAsyncArrowFunction();
|
|
1248
|
+
if (asyncArrowFn) {
|
|
1249
|
+
return;
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
tsParseTypeArgumentsWithPossibleBitshift();
|
|
1253
|
+
if (!noCalls && eat(tt.parenL)) {
|
|
1254
|
+
// With f<T>(), the subscriptStartIndex marker is on the ( token.
|
|
1255
|
+
state.tokens[state.tokens.length - 1].subscriptStartIndex = startTokenIndex;
|
|
1256
|
+
parseCallExpressionArguments();
|
|
1257
|
+
} else if (match(tt.backQuote)) {
|
|
1258
|
+
// Tagged template with a type argument.
|
|
1259
|
+
parseTemplate();
|
|
1260
|
+
} else if (
|
|
1261
|
+
// The remaining possible case is an instantiation expression, e.g.
|
|
1262
|
+
// Array<number> . Check for a few cases that would disqualify it and
|
|
1263
|
+
// cause us to bail out.
|
|
1264
|
+
// a<b>>c is not (a<b>)>c, but a<(b>>c)
|
|
1265
|
+
state.type === tt.greaterThan ||
|
|
1266
|
+
// a<b>c is (a<b)>c
|
|
1267
|
+
(state.type !== tt.parenL &&
|
|
1268
|
+
Boolean(state.type & TokenType.IS_EXPRESSION_START) &&
|
|
1269
|
+
!hasPrecedingLineBreak())
|
|
1270
|
+
) {
|
|
1271
|
+
// Bail out. We have something like a<b>c, which is not an expression with
|
|
1272
|
+
// type arguments but an (a < b) > c comparison.
|
|
1273
|
+
unexpected();
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
if (state.error) {
|
|
1277
|
+
state.restoreFromSnapshot(snapshot);
|
|
1278
|
+
} else {
|
|
1279
|
+
return;
|
|
1280
|
+
}
|
|
1281
|
+
} else if (!noCalls && match(tt.questionDot) && lookaheadType() === tt.lessThan) {
|
|
1282
|
+
// If we see f?.<, then this must be an optional call with a type argument.
|
|
1283
|
+
next();
|
|
1284
|
+
state.tokens[startTokenIndex].isOptionalChainStart = true;
|
|
1285
|
+
// With f?.<T>(), the subscriptStartIndex marker is on the ?. token.
|
|
1286
|
+
state.tokens[state.tokens.length - 1].subscriptStartIndex = startTokenIndex;
|
|
1287
|
+
|
|
1288
|
+
tsParseTypeArguments();
|
|
1289
|
+
expect(tt.parenL);
|
|
1290
|
+
parseCallExpressionArguments();
|
|
1291
|
+
}
|
|
1292
|
+
baseParseSubscript(startTokenIndex, noCalls, stopState);
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
export function tsTryParseExport() {
|
|
1296
|
+
if (eat(tt._import)) {
|
|
1297
|
+
// One of these cases:
|
|
1298
|
+
// export import A = B;
|
|
1299
|
+
// export import type A = require("A");
|
|
1300
|
+
if (isContextual(ContextualKeyword._type) && lookaheadType() !== tt.eq) {
|
|
1301
|
+
// Eat a `type` token, unless it's actually an identifier name.
|
|
1302
|
+
expectContextual(ContextualKeyword._type);
|
|
1303
|
+
}
|
|
1304
|
+
tsParseImportEqualsDeclaration();
|
|
1305
|
+
return true;
|
|
1306
|
+
} else if (eat(tt.eq)) {
|
|
1307
|
+
// `export = x;`
|
|
1308
|
+
parseExpression();
|
|
1309
|
+
semicolon();
|
|
1310
|
+
return true;
|
|
1311
|
+
} else if (eatContextual(ContextualKeyword._as)) {
|
|
1312
|
+
// `export as namespace A;`
|
|
1313
|
+
// See `parseNamespaceExportDeclaration` in TypeScript's own parser
|
|
1314
|
+
expectContextual(ContextualKeyword._namespace);
|
|
1315
|
+
parseIdentifier();
|
|
1316
|
+
semicolon();
|
|
1317
|
+
return true;
|
|
1318
|
+
} else {
|
|
1319
|
+
if (isContextual(ContextualKeyword._type)) {
|
|
1320
|
+
const nextType = lookaheadType();
|
|
1321
|
+
// export type {foo} from 'a';
|
|
1322
|
+
// export type * from 'a';'
|
|
1323
|
+
// export type * as ns from 'a';'
|
|
1324
|
+
if (nextType === tt.braceL || nextType === tt.star) {
|
|
1325
|
+
next();
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
return false;
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* Parse a TS import specifier, which may be prefixed with "type" and may be of
|
|
1334
|
+
* the form `foo as bar`.
|
|
1335
|
+
*
|
|
1336
|
+
* The number of identifier-like tokens we see happens to be enough to uniquely
|
|
1337
|
+
* identify the form, so simply count the number of identifiers rather than
|
|
1338
|
+
* matching the words `type` or `as`. This is particularly important because
|
|
1339
|
+
* `type` and `as` could each actually be plain identifiers rather than
|
|
1340
|
+
* keywords.
|
|
1341
|
+
*/
|
|
1342
|
+
export function tsParseImportSpecifier() {
|
|
1343
|
+
parseIdentifier();
|
|
1344
|
+
if (match(tt.comma) || match(tt.braceR)) {
|
|
1345
|
+
// import {foo}
|
|
1346
|
+
state.tokens[state.tokens.length - 1].identifierRole = IdentifierRole.ImportDeclaration;
|
|
1347
|
+
return;
|
|
1348
|
+
}
|
|
1349
|
+
parseIdentifier();
|
|
1350
|
+
if (match(tt.comma) || match(tt.braceR)) {
|
|
1351
|
+
// import {type foo}
|
|
1352
|
+
state.tokens[state.tokens.length - 1].identifierRole = IdentifierRole.ImportDeclaration;
|
|
1353
|
+
state.tokens[state.tokens.length - 2].isType = true;
|
|
1354
|
+
state.tokens[state.tokens.length - 1].isType = true;
|
|
1355
|
+
return;
|
|
1356
|
+
}
|
|
1357
|
+
parseIdentifier();
|
|
1358
|
+
if (match(tt.comma) || match(tt.braceR)) {
|
|
1359
|
+
// import {foo as bar}
|
|
1360
|
+
state.tokens[state.tokens.length - 3].identifierRole = IdentifierRole.ImportAccess;
|
|
1361
|
+
state.tokens[state.tokens.length - 1].identifierRole = IdentifierRole.ImportDeclaration;
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1364
|
+
parseIdentifier();
|
|
1365
|
+
// import {type foo as bar}
|
|
1366
|
+
state.tokens[state.tokens.length - 3].identifierRole = IdentifierRole.ImportAccess;
|
|
1367
|
+
state.tokens[state.tokens.length - 1].identifierRole = IdentifierRole.ImportDeclaration;
|
|
1368
|
+
state.tokens[state.tokens.length - 4].isType = true;
|
|
1369
|
+
state.tokens[state.tokens.length - 3].isType = true;
|
|
1370
|
+
state.tokens[state.tokens.length - 2].isType = true;
|
|
1371
|
+
state.tokens[state.tokens.length - 1].isType = true;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Just like named import specifiers, export specifiers can have from 1 to 4
|
|
1376
|
+
* tokens, inclusive, and the number of tokens determines the role of each token.
|
|
1377
|
+
*/
|
|
1378
|
+
export function tsParseExportSpecifier() {
|
|
1379
|
+
parseIdentifier();
|
|
1380
|
+
if (match(tt.comma) || match(tt.braceR)) {
|
|
1381
|
+
// export {foo}
|
|
1382
|
+
state.tokens[state.tokens.length - 1].identifierRole = IdentifierRole.ExportAccess;
|
|
1383
|
+
return;
|
|
1384
|
+
}
|
|
1385
|
+
parseIdentifier();
|
|
1386
|
+
if (match(tt.comma) || match(tt.braceR)) {
|
|
1387
|
+
// export {type foo}
|
|
1388
|
+
state.tokens[state.tokens.length - 1].identifierRole = IdentifierRole.ExportAccess;
|
|
1389
|
+
state.tokens[state.tokens.length - 2].isType = true;
|
|
1390
|
+
state.tokens[state.tokens.length - 1].isType = true;
|
|
1391
|
+
return;
|
|
1392
|
+
}
|
|
1393
|
+
parseIdentifier();
|
|
1394
|
+
if (match(tt.comma) || match(tt.braceR)) {
|
|
1395
|
+
// export {foo as bar}
|
|
1396
|
+
state.tokens[state.tokens.length - 3].identifierRole = IdentifierRole.ExportAccess;
|
|
1397
|
+
return;
|
|
1398
|
+
}
|
|
1399
|
+
parseIdentifier();
|
|
1400
|
+
// export {type foo as bar}
|
|
1401
|
+
state.tokens[state.tokens.length - 3].identifierRole = IdentifierRole.ExportAccess;
|
|
1402
|
+
state.tokens[state.tokens.length - 4].isType = true;
|
|
1403
|
+
state.tokens[state.tokens.length - 3].isType = true;
|
|
1404
|
+
state.tokens[state.tokens.length - 2].isType = true;
|
|
1405
|
+
state.tokens[state.tokens.length - 1].isType = true;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
export function tsTryParseExportDefaultExpression() {
|
|
1409
|
+
if (isContextual(ContextualKeyword._abstract) && lookaheadType() === tt._class) {
|
|
1410
|
+
state.type = tt._abstract;
|
|
1411
|
+
next(); // Skip "abstract"
|
|
1412
|
+
parseClass(true, true);
|
|
1413
|
+
return true;
|
|
1414
|
+
}
|
|
1415
|
+
if (isContextual(ContextualKeyword._interface)) {
|
|
1416
|
+
// Make sure "export default" are considered type tokens so the whole thing is removed.
|
|
1417
|
+
const oldIsType = pushTypeContext(2);
|
|
1418
|
+
tsParseDeclaration(ContextualKeyword._interface, true);
|
|
1419
|
+
popTypeContext(oldIsType);
|
|
1420
|
+
return true;
|
|
1421
|
+
}
|
|
1422
|
+
return false;
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
export function tsTryParseStatementContent() {
|
|
1426
|
+
if (state.type === tt._const) {
|
|
1427
|
+
const ahead = lookaheadTypeAndKeyword();
|
|
1428
|
+
if (ahead.type === tt.name && ahead.contextualKeyword === ContextualKeyword._enum) {
|
|
1429
|
+
expect(tt._const);
|
|
1430
|
+
expectContextual(ContextualKeyword._enum);
|
|
1431
|
+
state.tokens[state.tokens.length - 1].type = tt._enum;
|
|
1432
|
+
tsParseEnumDeclaration();
|
|
1433
|
+
return true;
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1436
|
+
return false;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
export function tsTryParseClassMemberWithIsStatic(isStatic) {
|
|
1440
|
+
const memberStartIndexAfterStatic = state.tokens.length;
|
|
1441
|
+
tsParseModifiers([
|
|
1442
|
+
ContextualKeyword._abstract,
|
|
1443
|
+
ContextualKeyword._readonly,
|
|
1444
|
+
ContextualKeyword._declare,
|
|
1445
|
+
ContextualKeyword._static,
|
|
1446
|
+
ContextualKeyword._override,
|
|
1447
|
+
]);
|
|
1448
|
+
|
|
1449
|
+
const modifiersEndIndex = state.tokens.length;
|
|
1450
|
+
const found = tsTryParseIndexSignature();
|
|
1451
|
+
if (found) {
|
|
1452
|
+
// Index signatures are type declarations, so set the modifier tokens as
|
|
1453
|
+
// type tokens. Most tokens could be assumed to be type tokens, but `static`
|
|
1454
|
+
// is ambiguous unless we set it explicitly here.
|
|
1455
|
+
const memberStartIndex = isStatic
|
|
1456
|
+
? memberStartIndexAfterStatic - 1
|
|
1457
|
+
: memberStartIndexAfterStatic;
|
|
1458
|
+
for (let i = memberStartIndex; i < modifiersEndIndex; i++) {
|
|
1459
|
+
state.tokens[i].isType = true;
|
|
1460
|
+
}
|
|
1461
|
+
return true;
|
|
1462
|
+
}
|
|
1463
|
+
return false;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
// Note: The reason we do this in `parseIdentifierStatement` and not `parseStatement`
|
|
1467
|
+
// is that e.g. `type()` is valid JS, so we must try parsing that first.
|
|
1468
|
+
// If it's really a type, we will parse `type` as the statement, and can correct it here
|
|
1469
|
+
// by parsing the rest.
|
|
1470
|
+
export function tsParseIdentifierStatement(contextualKeyword) {
|
|
1471
|
+
const matched = tsParseExpressionStatement(contextualKeyword);
|
|
1472
|
+
if (!matched) {
|
|
1473
|
+
semicolon();
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
export function tsParseExportDeclaration() {
|
|
1478
|
+
// "export declare" is equivalent to just "export".
|
|
1479
|
+
const isDeclare = eatContextual(ContextualKeyword._declare);
|
|
1480
|
+
if (isDeclare) {
|
|
1481
|
+
state.tokens[state.tokens.length - 1].type = tt._declare;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
let matchedDeclaration = false;
|
|
1485
|
+
if (match(tt.name)) {
|
|
1486
|
+
if (isDeclare) {
|
|
1487
|
+
const oldIsType = pushTypeContext(2);
|
|
1488
|
+
matchedDeclaration = tsTryParseExportDeclaration();
|
|
1489
|
+
popTypeContext(oldIsType);
|
|
1490
|
+
} else {
|
|
1491
|
+
matchedDeclaration = tsTryParseExportDeclaration();
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
if (!matchedDeclaration) {
|
|
1495
|
+
if (isDeclare) {
|
|
1496
|
+
const oldIsType = pushTypeContext(2);
|
|
1497
|
+
parseStatement(true);
|
|
1498
|
+
popTypeContext(oldIsType);
|
|
1499
|
+
} else {
|
|
1500
|
+
parseStatement(true);
|
|
1501
|
+
}
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
export function tsAfterParseClassSuper(hasSuper) {
|
|
1506
|
+
if (hasSuper && (match(tt.lessThan) || match(tt.bitShiftL))) {
|
|
1507
|
+
tsParseTypeArgumentsWithPossibleBitshift();
|
|
1508
|
+
}
|
|
1509
|
+
if (eatContextual(ContextualKeyword._implements)) {
|
|
1510
|
+
state.tokens[state.tokens.length - 1].type = tt._implements;
|
|
1511
|
+
const oldIsType = pushTypeContext(1);
|
|
1512
|
+
tsParseHeritageClause();
|
|
1513
|
+
popTypeContext(oldIsType);
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
export function tsStartParseObjPropValue() {
|
|
1518
|
+
tsTryParseTypeParameters();
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
export function tsStartParseFunctionParams() {
|
|
1522
|
+
tsTryParseTypeParameters();
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
// `let x: number;`
|
|
1526
|
+
export function tsAfterParseVarHead() {
|
|
1527
|
+
const oldIsType = pushTypeContext(0);
|
|
1528
|
+
if (!hasPrecedingLineBreak()) {
|
|
1529
|
+
eat(tt.bang);
|
|
1530
|
+
}
|
|
1531
|
+
tsTryParseTypeAnnotation();
|
|
1532
|
+
popTypeContext(oldIsType);
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
// parse the return type of an async arrow function - let foo = (async (): number => {});
|
|
1536
|
+
export function tsStartParseAsyncArrowFromCallExpression() {
|
|
1537
|
+
if (match(tt.colon)) {
|
|
1538
|
+
tsParseTypeAnnotation();
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
// Returns true if the expression was an arrow function.
|
|
1543
|
+
export function tsParseMaybeAssign(noIn, isWithinParens) {
|
|
1544
|
+
// Note: When the JSX plugin is on, type assertions (`<T> x`) aren't valid syntax.
|
|
1545
|
+
if (isJSXEnabled) {
|
|
1546
|
+
return tsParseMaybeAssignWithJSX(noIn, isWithinParens);
|
|
1547
|
+
} else {
|
|
1548
|
+
return tsParseMaybeAssignWithoutJSX(noIn, isWithinParens);
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
export function tsParseMaybeAssignWithJSX(noIn, isWithinParens) {
|
|
1553
|
+
if (!match(tt.lessThan)) {
|
|
1554
|
+
return baseParseMaybeAssign(noIn, isWithinParens);
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
// Prefer to parse JSX if possible. But may be an arrow fn.
|
|
1558
|
+
const snapshot = state.snapshot();
|
|
1559
|
+
let wasArrow = baseParseMaybeAssign(noIn, isWithinParens);
|
|
1560
|
+
if (state.error) {
|
|
1561
|
+
state.restoreFromSnapshot(snapshot);
|
|
1562
|
+
} else {
|
|
1563
|
+
return wasArrow;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
// Otherwise, try as type-parameterized arrow function.
|
|
1567
|
+
state.type = tt.typeParameterStart;
|
|
1568
|
+
// This is similar to TypeScript's `tryParseParenthesizedArrowFunctionExpression`.
|
|
1569
|
+
tsParseTypeParameters();
|
|
1570
|
+
wasArrow = baseParseMaybeAssign(noIn, isWithinParens);
|
|
1571
|
+
if (!wasArrow) {
|
|
1572
|
+
unexpected();
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
return wasArrow;
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
export function tsParseMaybeAssignWithoutJSX(noIn, isWithinParens) {
|
|
1579
|
+
if (!match(tt.lessThan)) {
|
|
1580
|
+
return baseParseMaybeAssign(noIn, isWithinParens);
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
const snapshot = state.snapshot();
|
|
1584
|
+
// This is similar to TypeScript's `tryParseParenthesizedArrowFunctionExpression`.
|
|
1585
|
+
tsParseTypeParameters();
|
|
1586
|
+
const wasArrow = baseParseMaybeAssign(noIn, isWithinParens);
|
|
1587
|
+
if (!wasArrow) {
|
|
1588
|
+
unexpected();
|
|
1589
|
+
}
|
|
1590
|
+
if (state.error) {
|
|
1591
|
+
state.restoreFromSnapshot(snapshot);
|
|
1592
|
+
} else {
|
|
1593
|
+
return wasArrow;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
// Try parsing a type cast instead of an arrow function.
|
|
1597
|
+
// This will start with a type assertion (via parseMaybeUnary).
|
|
1598
|
+
// But don't directly call `tsParseTypeAssertion` because we want to handle any binary after it.
|
|
1599
|
+
return baseParseMaybeAssign(noIn, isWithinParens);
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
export function tsParseArrow() {
|
|
1603
|
+
if (match(tt.colon)) {
|
|
1604
|
+
// This is different from how the TS parser does it.
|
|
1605
|
+
// TS uses lookahead. Babylon parses it as a parenthesized expression and converts.
|
|
1606
|
+
const snapshot = state.snapshot();
|
|
1607
|
+
|
|
1608
|
+
tsParseTypeOrTypePredicateAnnotation(tt.colon);
|
|
1609
|
+
if (canInsertSemicolon()) unexpected();
|
|
1610
|
+
if (!match(tt.arrow)) unexpected();
|
|
1611
|
+
|
|
1612
|
+
if (state.error) {
|
|
1613
|
+
state.restoreFromSnapshot(snapshot);
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
return eat(tt.arrow);
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
// Allow type annotations inside of a parameter list.
|
|
1620
|
+
export function tsParseAssignableListItemTypes() {
|
|
1621
|
+
const oldIsType = pushTypeContext(0);
|
|
1622
|
+
eat(tt.question);
|
|
1623
|
+
tsTryParseTypeAnnotation();
|
|
1624
|
+
popTypeContext(oldIsType);
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
export function tsParseMaybeDecoratorArguments() {
|
|
1628
|
+
if (match(tt.lessThan) || match(tt.bitShiftL)) {
|
|
1629
|
+
tsParseTypeArgumentsWithPossibleBitshift();
|
|
1630
|
+
}
|
|
1631
|
+
baseParseMaybeDecoratorArguments();
|
|
1632
|
+
}
|