@quilted/create 0.2.43 → 0.2.44
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/CHANGELOG.md +12 -0
- package/build/esm/_virtual/index.mjs +6 -2
- package/build/esm/_virtual/index10.mjs +3 -0
- package/build/esm/_virtual/index11.mjs +3 -0
- package/build/esm/_virtual/index12.mjs +3 -0
- package/build/esm/_virtual/index13.mjs +3 -0
- package/build/esm/_virtual/index2.mjs +2 -2
- package/build/esm/_virtual/index3.mjs +6 -2
- package/build/esm/_virtual/index4.mjs +6 -2
- package/build/esm/_virtual/index5.mjs +6 -2
- package/build/esm/_virtual/index6.mjs +6 -2
- package/build/esm/_virtual/index8.mjs +3 -0
- package/build/esm/_virtual/index9.mjs +3 -0
- package/build/esm/_virtual/minimatch.mjs +12 -0
- package/build/esm/app.mjs +2 -2
- package/build/esm/cli.mjs +1 -1
- package/build/esm/module.mjs +2 -2
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.mjs +29 -21
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.mjs +24 -18
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.mjs +35 -32
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.mjs +103 -101
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.mjs +19 -13
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.mjs +63 -61
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.mjs +33 -27
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.mjs +25 -19
- package/build/esm/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.mjs +15 -10
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.mjs +27 -19
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.mjs +35 -32
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.mjs +40 -34
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.mjs +27 -21
- package/build/esm/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.mjs +24 -17
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.mjs +44 -42
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.mjs +37 -30
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.mjs +41 -34
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.mjs +22 -15
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.mjs +104 -99
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.mjs +35 -29
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.mjs +19 -12
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.mjs +65 -60
- package/build/esm/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.mjs +34 -27
- package/build/esm/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.mjs +116 -112
- package/build/esm/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.mjs +54 -47
- package/build/esm/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.mjs +144 -137
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.mjs +173 -166
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.mjs +57 -51
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.mjs +102 -94
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.mjs +89 -83
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.mjs +312 -305
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.mjs +30 -24
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.mjs +116 -108
- package/build/esm/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.mjs +1 -3
- package/build/esm/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.mjs +63 -61
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.mjs +75 -77
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +28 -22
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.mjs +83 -78
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.mjs +66 -60
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +66 -59
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.mjs +23 -16
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.mjs +55 -48
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.mjs +40 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.mjs +59 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.mjs +38 -32
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.mjs +31 -25
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.mjs +33 -26
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.mjs +43 -38
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.mjs +41 -35
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.mjs +60 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.mjs +48 -43
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.mjs +65 -57
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.mjs +26 -20
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.mjs +14 -8
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.mjs +25 -19
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.mjs +33 -34
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +39 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.mjs +170 -164
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.mjs +24 -18
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.mjs +18 -12
- package/build/esm/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.mjs +227 -221
- package/build/esm/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.mjs +207 -200
- package/build/esm/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.mjs +1 -6
- package/build/esm/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.mjs +51 -44
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.mjs +2 -2
- package/build/esm/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.mjs +3 -3
- package/build/esm/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.mjs +443 -439
- package/build/esm/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.mjs +18 -11
- package/build/esm/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.mjs +116 -109
- package/build/esm/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.mjs +17 -10
- package/build/esm/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.mjs +117 -110
- package/build/esm/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.mjs +457 -451
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.mjs +14 -7
- package/build/esm/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.mjs +770 -770
- package/build/esm/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.mjs +40 -34
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.mjs +10 -3
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.mjs +227 -220
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.mjs +941 -935
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.mjs +331 -325
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.mjs +303 -297
- package/build/esm/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.mjs +65 -57
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.mjs +605 -605
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +378 -394
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +15 -15
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.mjs +281 -294
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +155 -155
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.mjs +1 -1
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.mjs +17 -12
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/lib/prompts.mjs +1 -1
- package/build/esm/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.mjs +14 -7
- package/build/esm/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.mjs +29 -22
- package/build/esm/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.mjs +49 -42
- package/build/esm/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.mjs +231 -224
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.mjs +3 -3
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +1 -1
- package/build/esm/package.mjs +2 -2
- package/build/esm/packages/cli-kit/build/esnext/prompt.esnext.mjs +1 -1
- package/build/esm/server.mjs +5 -9
- package/build/esm/shared/package-manager.mjs +1 -1
- package/build/esm/shared/prompts.mjs +1 -1
- package/build/esnext/_virtual/index.esnext +6 -2
- package/build/esnext/_virtual/index10.esnext +3 -0
- package/build/esnext/_virtual/index11.esnext +3 -0
- package/build/esnext/_virtual/index12.esnext +3 -0
- package/build/esnext/_virtual/index13.esnext +3 -0
- package/build/esnext/_virtual/index2.esnext +2 -2
- package/build/esnext/_virtual/index3.esnext +6 -2
- package/build/esnext/_virtual/index4.esnext +6 -2
- package/build/esnext/_virtual/index5.esnext +6 -2
- package/build/esnext/_virtual/index6.esnext +6 -2
- package/build/esnext/_virtual/index8.esnext +3 -0
- package/build/esnext/_virtual/index9.esnext +3 -0
- package/build/esnext/_virtual/minimatch.esnext +12 -0
- package/build/esnext/app.esnext +2 -2
- package/build/esnext/module.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.esnext +27 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.esnext +19 -13
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.esnext +99 -97
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.esnext +14 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.esnext +59 -57
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.esnext +31 -25
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.esnext +13 -8
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.esnext +25 -17
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.esnext +33 -30
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +25 -19
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +23 -16
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.esnext +42 -40
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.esnext +36 -29
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.esnext +40 -33
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.esnext +98 -93
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.esnext +59 -54
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.esnext +33 -26
- package/build/esnext/node_modules/.pnpm/arg@5.0.2/node_modules/arg/index.esnext +132 -128
- package/build/esnext/node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.esnext +54 -47
- package/build/esnext/node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.esnext +137 -130
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.esnext +66 -59
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.esnext +53 -47
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.esnext +102 -95
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +89 -83
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +217 -210
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.esnext +30 -24
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +75 -67
- package/build/esnext/node_modules/.pnpm/common-tags@1.8.2/node_modules/common-tags/es/splitStringTransformer/splitStringTransformer.esnext +1 -3
- package/build/esnext/node_modules/.pnpm/dir-glob@3.0.1/node_modules/dir-glob/index.esnext +63 -61
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext +68 -70
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +17 -11
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.esnext +81 -76
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.esnext +61 -55
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +61 -54
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.esnext +21 -14
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.esnext +49 -42
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.esnext +57 -53
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.esnext +34 -28
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.esnext +29 -23
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.esnext +40 -35
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.esnext +39 -33
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.esnext +56 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.esnext +46 -41
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.esnext +59 -51
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.esnext +24 -18
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.esnext +12 -6
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.esnext +31 -32
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +32 -26
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.esnext +135 -129
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.esnext +23 -17
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.esnext +16 -10
- package/build/esnext/node_modules/.pnpm/fastq@1.13.0/node_modules/fastq/queue.esnext +220 -215
- package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +193 -186
- package/build/esnext/node_modules/.pnpm/find-up@6.3.0/node_modules/find-up/index.esnext +1 -6
- package/build/esnext/node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.esnext +31 -24
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/ignore.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/globby@13.1.1/node_modules/globby/index.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/ignore@5.2.4/node_modules/ignore/index.esnext +357 -353
- package/build/esnext/node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.esnext +18 -11
- package/build/esnext/node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.esnext +111 -104
- package/build/esnext/node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.esnext +17 -10
- package/build/esnext/node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.esnext +103 -96
- package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +147 -141
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/lib/path.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/minimatch@5.1.0/node_modules/minimatch/minimatch.esnext +495 -491
- package/build/esnext/node_modules/.pnpm/path-type@4.0.0/node_modules/path-type/index.esnext +38 -32
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.esnext +10 -3
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.esnext +198 -191
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.esnext +683 -677
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.esnext +137 -131
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.esnext +279 -273
- package/build/esnext/node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.esnext +65 -57
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +9 -9
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +20 -20
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +15 -15
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +64 -64
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +19 -19
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/index.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/util/clear.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/index.esnext +16 -11
- package/build/esnext/node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.esnext +12 -5
- package/build/esnext/node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.esnext +29 -22
- package/build/esnext/node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.esnext +47 -40
- package/build/esnext/node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.esnext +196 -189
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/resolve-props.esnext +1 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/lexer.esnext +5 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/parse/parser.esnext +4 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/tags.esnext +3 -3
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +1 -1
- package/build/esnext/package.esnext +2 -2
- package/build/esnext/packages/cli-kit/build/esnext/prompt.esnext.esnext +1 -1
- package/build/esnext/server.esnext +5 -9
- package/build/esnext/shared/package-manager.esnext +1 -1
- package/build/esnext/shared/prompts.esnext +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/source/shared/prompts.ts +1 -1
- package/templates/app-basic/package.json +4 -4
- package/templates/app-empty/package.json +3 -3
- package/templates/app-graphql/package.json +4 -4
- package/templates/app-trpc/package.json +4 -4
- package/templates/package/package.json +3 -3
- package/templates/workspace/package.json +4 -4
package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs
CHANGED
|
@@ -10,7 +10,7 @@ var ca = (e, t) => () => (t || e((t = {
|
|
|
10
10
|
pr = (e, t) => {
|
|
11
11
|
for (var r in t) gn(e, r, {
|
|
12
12
|
get: t[r],
|
|
13
|
-
enumerable:
|
|
13
|
+
enumerable: true
|
|
14
14
|
});
|
|
15
15
|
},
|
|
16
16
|
la = (e, t, r, n) => {
|
|
@@ -20,23 +20,23 @@ var ca = (e, t) => () => (t || e((t = {
|
|
|
20
20
|
});
|
|
21
21
|
return e;
|
|
22
22
|
};
|
|
23
|
-
var ma = (e, t, r) => (r = e != null ? ua(oa(e)) : {}, la(
|
|
23
|
+
var ma = (e, t, r) => (r = e != null ? ua(oa(e)) : {}, la(gn(r, "default", {
|
|
24
24
|
value: e,
|
|
25
|
-
enumerable:
|
|
26
|
-
})
|
|
25
|
+
enumerable: true
|
|
26
|
+
}) , e));
|
|
27
27
|
var bs = (e, t, r) => {
|
|
28
28
|
if (!t.has(e)) throw TypeError("Cannot " + r);
|
|
29
29
|
};
|
|
30
|
-
var nt = (e, t, r) => (bs(e, t, "read from private field"),
|
|
30
|
+
var nt = (e, t, r) => (bs(e, t, "read from private field"), t.get(e)),
|
|
31
31
|
Ps = (e, t, r) => {
|
|
32
32
|
if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
|
|
33
33
|
t instanceof WeakSet ? t.add(e) : t.set(e, r);
|
|
34
34
|
},
|
|
35
|
-
ks = (e, t, r, n) => (bs(e, t, "write to private field"),
|
|
35
|
+
ks = (e, t, r, n) => (bs(e, t, "write to private field"), t.set(e, r), r);
|
|
36
36
|
var Hi = ca(ht => {
|
|
37
37
|
|
|
38
38
|
Object.defineProperty(ht, "__esModule", {
|
|
39
|
-
value:
|
|
39
|
+
value: true
|
|
40
40
|
});
|
|
41
41
|
ht.extract = el;
|
|
42
42
|
ht.parse = rl;
|
|
@@ -205,7 +205,7 @@ function Fa(e, t, r, n) {
|
|
|
205
205
|
r && s.push(u, Ls);
|
|
206
206
|
let i = Ze(u);
|
|
207
207
|
if (!i) throw new ct(u);
|
|
208
|
-
if ((t == null ? void 0 : t(u)) !==
|
|
208
|
+
if ((t == null ? void 0 : t(u)) !== false) switch (i) {
|
|
209
209
|
case je:
|
|
210
210
|
case De:
|
|
211
211
|
{
|
|
@@ -311,19 +311,19 @@ var de = {
|
|
|
311
311
|
};
|
|
312
312
|
var bn = {
|
|
313
313
|
type: ie,
|
|
314
|
-
hard:
|
|
314
|
+
hard: true
|
|
315
315
|
},
|
|
316
316
|
Ca = {
|
|
317
317
|
type: ie,
|
|
318
|
-
hard:
|
|
319
|
-
literal:
|
|
318
|
+
hard: true,
|
|
319
|
+
literal: true
|
|
320
320
|
},
|
|
321
321
|
A = {
|
|
322
322
|
type: ie
|
|
323
323
|
},
|
|
324
324
|
F = {
|
|
325
325
|
type: ie,
|
|
326
|
-
soft:
|
|
326
|
+
soft: true
|
|
327
327
|
},
|
|
328
328
|
C = [bn, Ae],
|
|
329
329
|
mr = [Ca, Ae],
|
|
@@ -418,23 +418,23 @@ function st(e, t) {
|
|
|
418
418
|
}
|
|
419
419
|
function Ms(e, t, r) {
|
|
420
420
|
let n = r,
|
|
421
|
-
s =
|
|
421
|
+
s = false;
|
|
422
422
|
function u(i) {
|
|
423
|
-
if (s) return
|
|
423
|
+
if (s) return false;
|
|
424
424
|
let a = t(i);
|
|
425
|
-
a !== void 0 && (s =
|
|
425
|
+
a !== void 0 && (s = true, n = a);
|
|
426
426
|
}
|
|
427
427
|
return Sn(e, u), n;
|
|
428
428
|
}
|
|
429
429
|
function Aa(e) {
|
|
430
|
-
if (e.type === ue && e.break || e.type === ie && e.hard || e.type === Pe) return
|
|
430
|
+
if (e.type === ue && e.break || e.type === ie && e.hard || e.type === Pe) return true;
|
|
431
431
|
}
|
|
432
432
|
function K(e) {
|
|
433
|
-
return Ms(e, Aa,
|
|
433
|
+
return Ms(e, Aa, false);
|
|
434
434
|
}
|
|
435
435
|
function js(e) {
|
|
436
436
|
if (e.length > 0) {
|
|
437
|
-
let t = w(
|
|
437
|
+
let t = w(false, e, -1);
|
|
438
438
|
!t.expandedStates && !t.break && (t.break = "propagated");
|
|
439
439
|
}
|
|
440
440
|
return null;
|
|
@@ -444,14 +444,14 @@ function Rs(e) {
|
|
|
444
444
|
r = [];
|
|
445
445
|
function n(u) {
|
|
446
446
|
if (u.type === Pe && js(r), u.type === ue) {
|
|
447
|
-
if (r.push(u), t.has(u)) return
|
|
447
|
+
if (r.push(u), t.has(u)) return false;
|
|
448
448
|
t.add(u);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
function s(u) {
|
|
452
452
|
u.type === ue && r.pop().break && js(r);
|
|
453
453
|
}
|
|
454
|
-
Sn(e, n, s,
|
|
454
|
+
Sn(e, n, s, true);
|
|
455
455
|
}
|
|
456
456
|
function Ta(e) {
|
|
457
457
|
return e.type === ie && !e.hard ? e.soft ? "" : " " : e.type === Fe ? e.flatContents : e;
|
|
@@ -483,7 +483,7 @@ function xa(e) {
|
|
|
483
483
|
for (let r of e) {
|
|
484
484
|
if (!r) continue;
|
|
485
485
|
let [n, ...s] = Array.isArray(r) ? r : [r];
|
|
486
|
-
typeof n == "string" && typeof w(
|
|
486
|
+
typeof n == "string" && typeof w(false, t, -1) == "string" ? t[t.length - 1] += n : t.push(n), t.push(...s);
|
|
487
487
|
}
|
|
488
488
|
return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
|
|
489
489
|
}
|
|
@@ -508,10 +508,10 @@ function Te(e, t = mr) {
|
|
|
508
508
|
`)) : r);
|
|
509
509
|
}
|
|
510
510
|
function ga(e) {
|
|
511
|
-
if (e.type === ie) return
|
|
511
|
+
if (e.type === ie) return true;
|
|
512
512
|
}
|
|
513
513
|
function Js(e) {
|
|
514
|
-
return Ms(e, ga,
|
|
514
|
+
return Ms(e, ga, false);
|
|
515
515
|
}
|
|
516
516
|
function Gt(e, t) {
|
|
517
517
|
return e.type === be ? {
|
|
@@ -533,7 +533,7 @@ var Us = ba;
|
|
|
533
533
|
function* Pa(e, t) {
|
|
534
534
|
let {
|
|
535
535
|
getVisitorKeys: r,
|
|
536
|
-
filter: n = () =>
|
|
536
|
+
filter: n = () => true
|
|
537
537
|
} = t,
|
|
538
538
|
s = u => Us(u) && n(u);
|
|
539
539
|
for (let u of r(e)) {
|
|
@@ -554,13 +554,13 @@ function Gs(e, {
|
|
|
554
554
|
}) {
|
|
555
555
|
for (let n of ka(e, {
|
|
556
556
|
getVisitorKeys: t
|
|
557
|
-
})) if (r(n)) return
|
|
558
|
-
return
|
|
557
|
+
})) if (r(n)) return true;
|
|
558
|
+
return false;
|
|
559
559
|
}
|
|
560
560
|
function yr(e) {
|
|
561
561
|
return (t, r, n) => {
|
|
562
562
|
let s = !!(n != null && n.backwards);
|
|
563
|
-
if (r ===
|
|
563
|
+
if (r === false) return false;
|
|
564
564
|
let {
|
|
565
565
|
length: u
|
|
566
566
|
} = t,
|
|
@@ -572,7 +572,7 @@ function yr(e) {
|
|
|
572
572
|
} else if (!e.includes(a)) return i;
|
|
573
573
|
s ? i-- : i++;
|
|
574
574
|
}
|
|
575
|
-
return i === -1 || i === u ? i :
|
|
575
|
+
return i === -1 || i === u ? i : false;
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
578
|
var We = yr(" "),
|
|
@@ -580,7 +580,7 @@ var We = yr(" "),
|
|
|
580
580
|
Ws = yr(/[^\n\r]/);
|
|
581
581
|
function Ia(e, t, r) {
|
|
582
582
|
let n = !!(r != null && r.backwards);
|
|
583
|
-
if (t ===
|
|
583
|
+
if (t === false) return false;
|
|
584
584
|
let s = e.charAt(t);
|
|
585
585
|
if (n) {
|
|
586
586
|
if (e.charAt(t - 1) === "\r" && s === `
|
|
@@ -603,7 +603,7 @@ function La(e, t, r = {}) {
|
|
|
603
603
|
}
|
|
604
604
|
var z = La;
|
|
605
605
|
function wa(e, t) {
|
|
606
|
-
if (t ===
|
|
606
|
+
if (t === false) return false;
|
|
607
607
|
if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
|
|
608
608
|
for (let r = t + 2; r < e.length; ++r) if (e.charAt(r) === "*" && e.charAt(r + 1) === "/") return r + 2;
|
|
609
609
|
}
|
|
@@ -611,14 +611,14 @@ function wa(e, t) {
|
|
|
611
611
|
}
|
|
612
612
|
var bt = wa;
|
|
613
613
|
function Oa(e, t) {
|
|
614
|
-
return t ===
|
|
614
|
+
return t === false ? false : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? Ws(e, t) : t;
|
|
615
615
|
}
|
|
616
616
|
var Pt = Oa;
|
|
617
617
|
function va(e, t) {
|
|
618
618
|
let r = null,
|
|
619
619
|
n = t;
|
|
620
620
|
for (; n !== r;) r = n, n = qs(e, n), n = bt(e, n), n = We(e, n);
|
|
621
|
-
return n = Pt(e, n), n = Ye(e, n), n !==
|
|
621
|
+
return n = Pt(e, n), n = Ye(e, n), n !== false && z(e, n);
|
|
622
622
|
}
|
|
623
623
|
var kt = va;
|
|
624
624
|
var Ys = () => /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
|
|
@@ -1011,7 +1011,7 @@ function qa(e, t) {
|
|
|
1011
1011
|
for (let n = r.length - 1; n >= 0; n--) {
|
|
1012
1012
|
let s = r[n];
|
|
1013
1013
|
if (n === 0) return e.type === "Identifier" && e.name === s;
|
|
1014
|
-
if (e.type !== "MemberExpression" || e.optional || e.computed || e.property.type !== "Identifier" || e.property.name !== s) return
|
|
1014
|
+
if (e.type !== "MemberExpression" || e.optional || e.computed || e.property.type !== "Identifier" || e.property.name !== s) return false;
|
|
1015
1015
|
e = e.object;
|
|
1016
1016
|
}
|
|
1017
1017
|
}
|
|
@@ -1104,12 +1104,12 @@ function za(e) {
|
|
|
1104
1104
|
return Hs(e, Ka);
|
|
1105
1105
|
}
|
|
1106
1106
|
function Ct(e, t) {
|
|
1107
|
-
if (e.type !== "CallExpression") return
|
|
1107
|
+
if (e.type !== "CallExpression") return false;
|
|
1108
1108
|
if (e.arguments.length === 1) {
|
|
1109
1109
|
if (In(e) && t && Ct(t)) return It(e.arguments[0]);
|
|
1110
1110
|
if (Ha(e)) return In(e.arguments[0]);
|
|
1111
|
-
} else if ((e.arguments.length === 2 || e.arguments.length === 3) && (e.arguments[0].type === "TemplateLiteral" || ee(e.arguments[0])) && za(e.callee)) return e.arguments[2] && !ge(e.arguments[2]) ?
|
|
1112
|
-
return
|
|
1111
|
+
} else if ((e.arguments.length === 2 || e.arguments.length === 3) && (e.arguments[0].type === "TemplateLiteral" || ee(e.arguments[0])) && za(e.callee)) return e.arguments[2] && !ge(e.arguments[2]) ? false : (e.arguments.length === 2 ? It(e.arguments[1]) : $a(e.arguments[1]) && Y(e.arguments[1]).length <= 1) || In(e.arguments[1]);
|
|
1112
|
+
return false;
|
|
1113
1113
|
}
|
|
1114
1114
|
var k = j(["CallExpression", "OptionalCallExpression"]),
|
|
1115
1115
|
J = j(["MemberExpression", "OptionalMemberExpression"]);
|
|
@@ -1117,15 +1117,15 @@ function tu(e) {
|
|
|
1117
1117
|
let t = "expressions";
|
|
1118
1118
|
e.type === "TSTemplateLiteralType" && (t = "types");
|
|
1119
1119
|
let r = e[t];
|
|
1120
|
-
return r.length === 0 ?
|
|
1121
|
-
if (d(n)) return
|
|
1122
|
-
if (n.type === "Identifier" || n.type === "ThisExpression") return
|
|
1120
|
+
return r.length === 0 ? false : r.every(n => {
|
|
1121
|
+
if (d(n)) return false;
|
|
1122
|
+
if (n.type === "Identifier" || n.type === "ThisExpression") return true;
|
|
1123
1123
|
if (n.type === "ChainExpression" && (n = n.expression), J(n)) {
|
|
1124
1124
|
let s = n;
|
|
1125
|
-
for (; J(s);) if (s.property.type !== "Identifier" && s.property.type !== "Literal" && s.property.type !== "StringLiteral" && s.property.type !== "NumericLiteral" || (s = s.object, d(s))) return
|
|
1125
|
+
for (; J(s);) if (s.property.type !== "Identifier" && s.property.type !== "Literal" && s.property.type !== "StringLiteral" && s.property.type !== "NumericLiteral" || (s = s.object, d(s))) return false;
|
|
1126
1126
|
return s.type === "Identifier" || s.type === "ThisExpression";
|
|
1127
1127
|
}
|
|
1128
|
-
return
|
|
1128
|
+
return false;
|
|
1129
1129
|
});
|
|
1130
1130
|
}
|
|
1131
1131
|
function Ie(e, t) {
|
|
@@ -1143,23 +1143,23 @@ function Ks(e) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
function gr(e, t) {
|
|
1145
1145
|
return (e.type === "TemplateLiteral" && Ks(e) || e.type === "TaggedTemplateExpression" && Ks(e.quasi)) && !z(t, U(e), {
|
|
1146
|
-
backwards:
|
|
1146
|
+
backwards: true
|
|
1147
1147
|
});
|
|
1148
1148
|
}
|
|
1149
1149
|
function hr(e) {
|
|
1150
|
-
if (!d(e)) return
|
|
1151
|
-
let t = w(
|
|
1150
|
+
if (!d(e)) return false;
|
|
1151
|
+
let t = w(false, Kt(e, x.Dangling), -1);
|
|
1152
1152
|
return t && !ae(t);
|
|
1153
1153
|
}
|
|
1154
1154
|
function ru(e) {
|
|
1155
|
-
if (e.length <= 1) return
|
|
1155
|
+
if (e.length <= 1) return false;
|
|
1156
1156
|
let t = 0;
|
|
1157
1157
|
for (let r of e) if (It(r)) {
|
|
1158
|
-
if (t += 1, t > 1) return
|
|
1158
|
+
if (t += 1, t > 1) return true;
|
|
1159
1159
|
} else if (k(r)) {
|
|
1160
|
-
for (let n of r.arguments) if (It(n)) return
|
|
1160
|
+
for (let n of r.arguments) if (It(n)) return true;
|
|
1161
1161
|
}
|
|
1162
|
-
return
|
|
1162
|
+
return false;
|
|
1163
1163
|
}
|
|
1164
1164
|
function Sr(e) {
|
|
1165
1165
|
let {
|
|
@@ -1171,10 +1171,10 @@ function Sr(e) {
|
|
|
1171
1171
|
}
|
|
1172
1172
|
var Qa = new Set(["!", "-", "+", "~"]);
|
|
1173
1173
|
function xe(e, t = 2) {
|
|
1174
|
-
if (t <= 0) return
|
|
1174
|
+
if (t <= 0) return false;
|
|
1175
1175
|
let r = n => xe(n, t - 1);
|
|
1176
1176
|
if (vn(e)) return tt(e.pattern ?? e.regex.pattern) <= 5;
|
|
1177
|
-
if (e.type === "Literal" || e.type === "BigIntLiteral" || e.type === "DecimalLiteral" || e.type === "BooleanLiteral" || e.type === "NullLiteral" || e.type === "NumericLiteral" || e.type === "StringLiteral" || e.type === "Identifier" || e.type === "ThisExpression" || e.type === "Super" || e.type === "PrivateName" || e.type === "PrivateIdentifier" || e.type === "ArgumentPlaceholder" || e.type === "Import") return
|
|
1177
|
+
if (e.type === "Literal" || e.type === "BigIntLiteral" || e.type === "DecimalLiteral" || e.type === "BooleanLiteral" || e.type === "NullLiteral" || e.type === "NumericLiteral" || e.type === "StringLiteral" || e.type === "Identifier" || e.type === "ThisExpression" || e.type === "Super" || e.type === "PrivateName" || e.type === "PrivateIdentifier" || e.type === "ArgumentPlaceholder" || e.type === "Import") return true;
|
|
1178
1178
|
if (e.type === "TemplateLiteral") return e.quasis.every(n => !n.value.raw.includes(`
|
|
1179
1179
|
`)) && e.expressions.every(r);
|
|
1180
1180
|
if (Z(e)) return e.properties.every(n => !n.computed && (n.shorthand || n.value && r(n.value)));
|
|
@@ -1184,9 +1184,9 @@ function xe(e, t = 2) {
|
|
|
1184
1184
|
let n = he(e);
|
|
1185
1185
|
return n.length <= t && n.every(r);
|
|
1186
1186
|
}
|
|
1187
|
-
return
|
|
1187
|
+
return false;
|
|
1188
1188
|
}
|
|
1189
|
-
return J(e) ? xe(e.object, t) && xe(e.property, t) : e.type === "UnaryExpression" && Qa.has(e.operator) || e.type === "UpdateExpression" ? xe(e.argument, t) : e.type === "TSNonNullExpression" ? xe(e.expression, t) :
|
|
1189
|
+
return J(e) ? xe(e.object, t) && xe(e.property, t) : e.type === "UnaryExpression" && Qa.has(e.operator) || e.type === "UpdateExpression" ? xe(e.argument, t) : e.type === "TSNonNullExpression" ? xe(e.expression, t) : false;
|
|
1190
1190
|
}
|
|
1191
1191
|
function oe(e) {
|
|
1192
1192
|
var t;
|
|
@@ -1209,10 +1209,10 @@ function re(e, t) {
|
|
|
1209
1209
|
case "OptionalMemberExpression":
|
|
1210
1210
|
return re(e.object, t);
|
|
1211
1211
|
case "TaggedTemplateExpression":
|
|
1212
|
-
return e.tag.type === "FunctionExpression" ?
|
|
1212
|
+
return e.tag.type === "FunctionExpression" ? false : re(e.tag, t);
|
|
1213
1213
|
case "CallExpression":
|
|
1214
1214
|
case "OptionalCallExpression":
|
|
1215
|
-
return e.callee.type === "FunctionExpression" ?
|
|
1215
|
+
return e.callee.type === "FunctionExpression" ? false : re(e.callee, t);
|
|
1216
1216
|
case "ConditionalExpression":
|
|
1217
1217
|
return re(e.test, t);
|
|
1218
1218
|
case "UpdateExpression":
|
|
@@ -1231,20 +1231,20 @@ function re(e, t) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
1233
|
var zs = {
|
|
1234
|
-
"==":
|
|
1235
|
-
"!=":
|
|
1236
|
-
"===":
|
|
1237
|
-
"!==":
|
|
1234
|
+
"==": true,
|
|
1235
|
+
"!=": true,
|
|
1236
|
+
"===": true,
|
|
1237
|
+
"!==": true
|
|
1238
1238
|
},
|
|
1239
1239
|
dr = {
|
|
1240
|
-
"*":
|
|
1241
|
-
"/":
|
|
1242
|
-
"%":
|
|
1240
|
+
"*": true,
|
|
1241
|
+
"/": true,
|
|
1242
|
+
"%": true
|
|
1243
1243
|
},
|
|
1244
1244
|
On = {
|
|
1245
|
-
">>":
|
|
1246
|
-
">>>":
|
|
1247
|
-
"<<":
|
|
1245
|
+
">>": true,
|
|
1246
|
+
">>>": true,
|
|
1247
|
+
"<<": true
|
|
1248
1248
|
};
|
|
1249
1249
|
function Vt(e, t) {
|
|
1250
1250
|
return !(Yt(t) !== Yt(e) || e === "**" || zs[e] && zs[t] || t === "%" && dr[e] || e === "%" && dr[t] || t !== e && dr[t] && dr[e] || On[e] && On[t]);
|
|
@@ -1258,9 +1258,9 @@ function su(e) {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
function uu(e) {
|
|
1260
1260
|
var r;
|
|
1261
|
-
if (e.rest) return
|
|
1261
|
+
if (e.rest) return true;
|
|
1262
1262
|
let t = Y(e);
|
|
1263
|
-
return ((r = w(
|
|
1263
|
+
return ((r = w(false, t, -1)) == null ? void 0 : r.type) === "RestElement";
|
|
1264
1264
|
}
|
|
1265
1265
|
var Ln = new WeakMap();
|
|
1266
1266
|
function Y(e) {
|
|
@@ -1317,9 +1317,9 @@ var x = {
|
|
|
1317
1317
|
if (typeof e == "function" && (t = e, e = 0), e || t) return (r, n, s) => !(e & x.Leading && !r.leading || e & x.Trailing && !r.trailing || e & x.Dangling && (r.leading || r.trailing) || e & x.Block && !ae(r) || e & x.Line && !$t(r) || e & x.First && n !== 0 || e & x.Last && n !== s.length - 1 || e & x.PrettierIgnore && !Ht(r) || t && !t(r));
|
|
1318
1318
|
};
|
|
1319
1319
|
function d(e, t, r) {
|
|
1320
|
-
if (!P(e == null ? void 0 : e.comments)) return
|
|
1320
|
+
if (!P(e == null ? void 0 : e.comments)) return false;
|
|
1321
1321
|
let n = au(t, r);
|
|
1322
|
-
return n ? e.comments.some(n) :
|
|
1322
|
+
return n ? e.comments.some(n) : true;
|
|
1323
1323
|
}
|
|
1324
1324
|
function Kt(e, t, r) {
|
|
1325
1325
|
if (!Array.isArray(e == null ? void 0 : e.comments)) return [];
|
|
@@ -1339,70 +1339,70 @@ var zt = Symbol("ifWithoutBlockAndSameLineComment"),
|
|
|
1339
1339
|
Le = j(["TSAsExpression", "TSSatisfiesExpression"]);
|
|
1340
1340
|
function Nn(e, t) {
|
|
1341
1341
|
var u, i, a, o, p, m, y;
|
|
1342
|
-
if (e.isRoot) return
|
|
1342
|
+
if (e.isRoot) return false;
|
|
1343
1343
|
let {
|
|
1344
1344
|
node: r,
|
|
1345
1345
|
key: n,
|
|
1346
1346
|
parent: s
|
|
1347
1347
|
} = e;
|
|
1348
|
-
if (t.__isInHtmlInterpolation && !t.bracketSpacing && no(r) && Qt(e)) return
|
|
1349
|
-
if (eo(r)) return
|
|
1348
|
+
if (t.__isInHtmlInterpolation && !t.bracketSpacing && no(r) && Qt(e)) return true;
|
|
1349
|
+
if (eo(r)) return false;
|
|
1350
1350
|
if (r.type === "Identifier") {
|
|
1351
|
-
if ((u = r.extra) != null && u.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.name) || n === "left" && (r.name === "async" && !s.await || r.name === "let") && s.type === "ForOfStatement") return
|
|
1351
|
+
if ((u = r.extra) != null && u.parenthesized && /^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(r.name) || n === "left" && (r.name === "async" && !s.await || r.name === "let") && s.type === "ForOfStatement") return true;
|
|
1352
1352
|
if (r.name === "let") {
|
|
1353
1353
|
let c = (i = e.findAncestor(f => f.type === "ForOfStatement")) == null ? void 0 : i.left;
|
|
1354
|
-
if (c && re(c, f => f === r)) return
|
|
1354
|
+
if (c && re(c, f => f === r)) return true;
|
|
1355
1355
|
}
|
|
1356
1356
|
if (n === "object" && r.name === "let" && s.type === "MemberExpression" && s.computed && !s.optional) {
|
|
1357
1357
|
let c = e.findAncestor(l => l.type === "ExpressionStatement" || l.type === "ForStatement" || l.type === "ForInStatement"),
|
|
1358
1358
|
f = c ? c.type === "ExpressionStatement" ? c.expression : c.type === "ForStatement" ? c.init : c.left : void 0;
|
|
1359
|
-
if (f && re(f, l => l === r)) return
|
|
1359
|
+
if (f && re(f, l => l === r)) return true;
|
|
1360
1360
|
}
|
|
1361
|
-
return
|
|
1361
|
+
return false;
|
|
1362
1362
|
}
|
|
1363
1363
|
if (r.type === "ObjectExpression" || r.type === "FunctionExpression" || r.type === "ClassExpression" || r.type === "DoExpression") {
|
|
1364
1364
|
let c = (a = e.findAncestor(f => f.type === "ExpressionStatement")) == null ? void 0 : a.expression;
|
|
1365
|
-
if (c && re(c, f => f === r)) return
|
|
1365
|
+
if (c && re(c, f => f === r)) return true;
|
|
1366
1366
|
}
|
|
1367
1367
|
if (r.type === "ObjectExpression") {
|
|
1368
1368
|
let c = (o = e.findAncestor(f => f.type === "ArrowFunctionExpression")) == null ? void 0 : o.body;
|
|
1369
|
-
if (c && c.type !== "SequenceExpression" && c.type !== "AssignmentExpression" && re(c, f => f === r)) return
|
|
1369
|
+
if (c && c.type !== "SequenceExpression" && c.type !== "AssignmentExpression" && re(c, f => f === r)) return true;
|
|
1370
1370
|
}
|
|
1371
1371
|
switch (s.type) {
|
|
1372
1372
|
case "ParenthesizedExpression":
|
|
1373
|
-
return
|
|
1373
|
+
return false;
|
|
1374
1374
|
case "ClassDeclaration":
|
|
1375
1375
|
case "ClassExpression":
|
|
1376
|
-
if (n === "superClass" && (r.type === "ArrowFunctionExpression" || r.type === "AssignmentExpression" || r.type === "AwaitExpression" || r.type === "BinaryExpression" || r.type === "ConditionalExpression" || r.type === "LogicalExpression" || r.type === "NewExpression" || r.type === "ObjectExpression" || r.type === "SequenceExpression" || r.type === "TaggedTemplateExpression" || r.type === "UnaryExpression" || r.type === "UpdateExpression" || r.type === "YieldExpression" || r.type === "TSNonNullExpression" || r.type === "ClassExpression" && P(r.decorators))) return
|
|
1376
|
+
if (n === "superClass" && (r.type === "ArrowFunctionExpression" || r.type === "AssignmentExpression" || r.type === "AwaitExpression" || r.type === "BinaryExpression" || r.type === "ConditionalExpression" || r.type === "LogicalExpression" || r.type === "NewExpression" || r.type === "ObjectExpression" || r.type === "SequenceExpression" || r.type === "TaggedTemplateExpression" || r.type === "UnaryExpression" || r.type === "UpdateExpression" || r.type === "YieldExpression" || r.type === "TSNonNullExpression" || r.type === "ClassExpression" && P(r.decorators))) return true;
|
|
1377
1377
|
break;
|
|
1378
1378
|
case "ExportDefaultDeclaration":
|
|
1379
1379
|
return ou(e, t) || r.type === "SequenceExpression";
|
|
1380
1380
|
case "Decorator":
|
|
1381
1381
|
if (n === "expression") {
|
|
1382
|
-
if (J(r) && r.computed) return
|
|
1383
|
-
let c =
|
|
1384
|
-
f =
|
|
1382
|
+
if (J(r) && r.computed) return true;
|
|
1383
|
+
let c = false,
|
|
1384
|
+
f = false,
|
|
1385
1385
|
l = r;
|
|
1386
1386
|
for (; l;) switch (l.type) {
|
|
1387
1387
|
case "MemberExpression":
|
|
1388
|
-
f =
|
|
1388
|
+
f = true, l = l.object;
|
|
1389
1389
|
break;
|
|
1390
1390
|
case "CallExpression":
|
|
1391
1391
|
if (f || c) return t.parser !== "typescript";
|
|
1392
|
-
c =
|
|
1392
|
+
c = true, l = l.callee;
|
|
1393
1393
|
break;
|
|
1394
1394
|
case "Identifier":
|
|
1395
|
-
return
|
|
1395
|
+
return false;
|
|
1396
1396
|
case "TaggedTemplateExpression":
|
|
1397
1397
|
return t.parser !== "typescript";
|
|
1398
1398
|
default:
|
|
1399
|
-
return
|
|
1399
|
+
return true;
|
|
1400
1400
|
}
|
|
1401
|
-
return
|
|
1401
|
+
return true;
|
|
1402
1402
|
}
|
|
1403
1403
|
break;
|
|
1404
1404
|
case "TypeAnnotation":
|
|
1405
|
-
if (e.match(void 0, void 0, (c, f) => f === "returnType" && c.type === "ArrowFunctionExpression") && ro(r)) return
|
|
1405
|
+
if (e.match(void 0, void 0, (c, f) => f === "returnType" && c.type === "ArrowFunctionExpression") && ro(r)) return true;
|
|
1406
1406
|
break;
|
|
1407
1407
|
}
|
|
1408
1408
|
switch (r.type) {
|
|
@@ -1413,12 +1413,12 @@ function Nn(e, t) {
|
|
|
1413
1413
|
case "UnaryExpression":
|
|
1414
1414
|
return r.operator === s.operator && (r.operator === "+" || r.operator === "-");
|
|
1415
1415
|
case "BindExpression":
|
|
1416
|
-
return
|
|
1416
|
+
return true;
|
|
1417
1417
|
case "MemberExpression":
|
|
1418
1418
|
case "OptionalMemberExpression":
|
|
1419
1419
|
return n === "object";
|
|
1420
1420
|
case "TaggedTemplateExpression":
|
|
1421
|
-
return
|
|
1421
|
+
return true;
|
|
1422
1422
|
case "NewExpression":
|
|
1423
1423
|
case "CallExpression":
|
|
1424
1424
|
case "OptionalCallExpression":
|
|
@@ -1426,15 +1426,15 @@ function Nn(e, t) {
|
|
|
1426
1426
|
case "BinaryExpression":
|
|
1427
1427
|
return n === "left" && s.operator === "**";
|
|
1428
1428
|
case "TSNonNullExpression":
|
|
1429
|
-
return
|
|
1429
|
+
return true;
|
|
1430
1430
|
default:
|
|
1431
|
-
return
|
|
1431
|
+
return false;
|
|
1432
1432
|
}
|
|
1433
1433
|
case "BinaryExpression":
|
|
1434
|
-
if (s.type === "UpdateExpression" || r.operator === "in" && to(e)) return
|
|
1434
|
+
if (s.type === "UpdateExpression" || r.operator === "in" && to(e)) return true;
|
|
1435
1435
|
if (r.operator === "|>" && (p = r.extra) != null && p.parenthesized) {
|
|
1436
1436
|
let c = e.grandparent;
|
|
1437
|
-
if (c.type === "BinaryExpression" && c.operator === "|>") return
|
|
1437
|
+
if (c.type === "BinaryExpression" && c.operator === "|>") return true;
|
|
1438
1438
|
}
|
|
1439
1439
|
case "TSTypeAssertion":
|
|
1440
1440
|
case "TSAsExpression":
|
|
@@ -1462,7 +1462,7 @@ function Nn(e, t) {
|
|
|
1462
1462
|
case "AwaitExpression":
|
|
1463
1463
|
case "TSNonNullExpression":
|
|
1464
1464
|
case "UpdateExpression":
|
|
1465
|
-
return
|
|
1465
|
+
return true;
|
|
1466
1466
|
case "MemberExpression":
|
|
1467
1467
|
case "OptionalMemberExpression":
|
|
1468
1468
|
return n === "object";
|
|
@@ -1477,30 +1477,30 @@ function Nn(e, t) {
|
|
|
1477
1477
|
operator: c,
|
|
1478
1478
|
type: f
|
|
1479
1479
|
} = r;
|
|
1480
|
-
if (!c && f !== "TSTypeAssertion") return
|
|
1480
|
+
if (!c && f !== "TSTypeAssertion") return true;
|
|
1481
1481
|
let l = Yt(c),
|
|
1482
1482
|
h = s.operator,
|
|
1483
1483
|
g = Yt(h);
|
|
1484
|
-
return g > l || n === "right" && g === l || g === l && !Vt(h, c) ?
|
|
1484
|
+
return g > l || n === "right" && g === l || g === l && !Vt(h, c) ? true : g < l && c === "%" ? h === "+" || h === "-" : !!su(h);
|
|
1485
1485
|
}
|
|
1486
1486
|
default:
|
|
1487
|
-
return
|
|
1487
|
+
return false;
|
|
1488
1488
|
}
|
|
1489
1489
|
case "SequenceExpression":
|
|
1490
1490
|
switch (s.type) {
|
|
1491
1491
|
case "ReturnStatement":
|
|
1492
|
-
return
|
|
1492
|
+
return false;
|
|
1493
1493
|
case "ForStatement":
|
|
1494
|
-
return
|
|
1494
|
+
return false;
|
|
1495
1495
|
case "ExpressionStatement":
|
|
1496
1496
|
return n !== "expression";
|
|
1497
1497
|
case "ArrowFunctionExpression":
|
|
1498
1498
|
return n !== "body";
|
|
1499
1499
|
default:
|
|
1500
|
-
return
|
|
1500
|
+
return true;
|
|
1501
1501
|
}
|
|
1502
1502
|
case "YieldExpression":
|
|
1503
|
-
if (s.type === "AwaitExpression") return
|
|
1503
|
+
if (s.type === "AwaitExpression") return true;
|
|
1504
1504
|
case "AwaitExpression":
|
|
1505
1505
|
switch (s.type) {
|
|
1506
1506
|
case "TaggedTemplateExpression":
|
|
@@ -1511,7 +1511,7 @@ function Nn(e, t) {
|
|
|
1511
1511
|
case "TSSatisfiesExpression":
|
|
1512
1512
|
case "TSNonNullExpression":
|
|
1513
1513
|
case "BindExpression":
|
|
1514
|
-
return
|
|
1514
|
+
return true;
|
|
1515
1515
|
case "MemberExpression":
|
|
1516
1516
|
case "OptionalMemberExpression":
|
|
1517
1517
|
return n === "object";
|
|
@@ -1524,25 +1524,25 @@ function Nn(e, t) {
|
|
|
1524
1524
|
case "BinaryExpression":
|
|
1525
1525
|
return !(!r.argument && s.operator === "|>");
|
|
1526
1526
|
default:
|
|
1527
|
-
return
|
|
1527
|
+
return false;
|
|
1528
1528
|
}
|
|
1529
1529
|
case "TSFunctionType":
|
|
1530
|
-
if (e.match(c => c.type === "TSFunctionType", (c, f) => f === "typeAnnotation" && c.type === "TSTypeAnnotation", (c, f) => f === "returnType" && c.type === "ArrowFunctionExpression")) return
|
|
1530
|
+
if (e.match(c => c.type === "TSFunctionType", (c, f) => f === "typeAnnotation" && c.type === "TSTypeAnnotation", (c, f) => f === "returnType" && c.type === "ArrowFunctionExpression")) return true;
|
|
1531
1531
|
case "TSConditionalType":
|
|
1532
1532
|
case "TSConstructorType":
|
|
1533
1533
|
if (n === "extendsType" && s.type === "TSConditionalType") {
|
|
1534
|
-
if (r.type === "TSConditionalType") return
|
|
1534
|
+
if (r.type === "TSConditionalType") return true;
|
|
1535
1535
|
let {
|
|
1536
1536
|
typeAnnotation: c
|
|
1537
1537
|
} = r.returnType || r.typeAnnotation;
|
|
1538
|
-
if (c.type === "TSTypePredicate" && c.typeAnnotation && (c = c.typeAnnotation.typeAnnotation), c.type === "TSInferType" && c.typeParameter.constraint) return
|
|
1538
|
+
if (c.type === "TSTypePredicate" && c.typeAnnotation && (c = c.typeAnnotation.typeAnnotation), c.type === "TSInferType" && c.typeParameter.constraint) return true;
|
|
1539
1539
|
}
|
|
1540
|
-
if (n === "checkType" && s.type === "TSConditionalType") return
|
|
1540
|
+
if (n === "checkType" && s.type === "TSConditionalType") return true;
|
|
1541
1541
|
case "TSUnionType":
|
|
1542
1542
|
case "TSIntersectionType":
|
|
1543
|
-
if ((s.type === "TSUnionType" || s.type === "TSIntersectionType") && s.types.length > 1 && (!r.types || r.types.length > 1)) return
|
|
1543
|
+
if ((s.type === "TSUnionType" || s.type === "TSIntersectionType") && s.types.length > 1 && (!r.types || r.types.length > 1)) return true;
|
|
1544
1544
|
case "TSInferType":
|
|
1545
|
-
if (r.type === "TSInferType" && s.type === "TSRestType") return
|
|
1545
|
+
if (r.type === "TSInferType" && s.type === "TSRestType") return false;
|
|
1546
1546
|
case "TSTypeOperator":
|
|
1547
1547
|
return s.type === "TSArrayType" || s.type === "TSOptionalType" || s.type === "TSRestType" || n === "objectType" && s.type === "TSIndexedAccessType" || s.type === "TSTypeOperator" || s.type === "TSTypeAnnotation" && e.grandparent.type.startsWith("TSJSDoc");
|
|
1548
1548
|
case "TSTypeQuery":
|
|
@@ -1559,7 +1559,7 @@ function Nn(e, t) {
|
|
|
1559
1559
|
return s.type === "ArrayTypeAnnotation" || n === "objectType" && (s.type === "IndexedAccessType" || s.type === "OptionalIndexedAccessType");
|
|
1560
1560
|
case "FunctionTypeAnnotation":
|
|
1561
1561
|
{
|
|
1562
|
-
if (e.match(void 0, (f, l) => l === "typeAnnotation" && f.type === "TypeAnnotation", (f, l) => l === "returnType" && f.type === "ArrowFunctionExpression") || e.match(void 0, (f, l) => l === "typeAnnotation" && f.type === "TypePredicate", (f, l) => l === "typeAnnotation" && f.type === "TypeAnnotation", (f, l) => l === "returnType" && f.type === "ArrowFunctionExpression")) return
|
|
1562
|
+
if (e.match(void 0, (f, l) => l === "typeAnnotation" && f.type === "TypeAnnotation", (f, l) => l === "returnType" && f.type === "ArrowFunctionExpression") || e.match(void 0, (f, l) => l === "typeAnnotation" && f.type === "TypePredicate", (f, l) => l === "typeAnnotation" && f.type === "TypeAnnotation", (f, l) => l === "returnType" && f.type === "ArrowFunctionExpression")) return true;
|
|
1563
1563
|
let c = s.type === "NullableTypeAnnotation" ? e.grandparent : s;
|
|
1564
1564
|
return c.type === "UnionTypeAnnotation" || c.type === "IntersectionTypeAnnotation" || c.type === "ArrayTypeAnnotation" || n === "objectType" && (c.type === "IndexedAccessType" || c.type === "OptionalIndexedAccessType") || n === "checkType" && s.type === "ConditionalTypeAnnotation" || n === "extendsType" && s.type === "ConditionalTypeAnnotation" && r.returnType.type === "InferTypeAnnotation" && r.returnType.typeParameter.bound || c.type === "NullableTypeAnnotation" || s.type === "FunctionTypeParam" && s.name === null && Y(r).some(f => {
|
|
1565
1565
|
var l;
|
|
@@ -1567,7 +1567,7 @@ function Nn(e, t) {
|
|
|
1567
1567
|
});
|
|
1568
1568
|
}
|
|
1569
1569
|
case "ConditionalTypeAnnotation":
|
|
1570
|
-
if (n === "extendsType" && s.type === "ConditionalTypeAnnotation" && r.type === "ConditionalTypeAnnotation" || n === "checkType" && s.type === "ConditionalTypeAnnotation") return
|
|
1570
|
+
if (n === "extendsType" && s.type === "ConditionalTypeAnnotation" && r.type === "ConditionalTypeAnnotation" || n === "checkType" && s.type === "ConditionalTypeAnnotation") return true;
|
|
1571
1571
|
case "OptionalIndexedAccessType":
|
|
1572
1572
|
return n === "objectType" && s.type === "IndexedAccessType";
|
|
1573
1573
|
case "StringLiteral":
|
|
@@ -1581,7 +1581,7 @@ function Nn(e, t) {
|
|
|
1581
1581
|
case "AssignmentExpression":
|
|
1582
1582
|
{
|
|
1583
1583
|
let c = e.grandparent;
|
|
1584
|
-
return n === "body" && s.type === "ArrowFunctionExpression" ?
|
|
1584
|
+
return n === "body" && s.type === "ArrowFunctionExpression" ? true : n === "key" && (s.type === "ClassProperty" || s.type === "PropertyDefinition") && s.computed || (n === "init" || n === "update") && s.type === "ForStatement" ? false : s.type === "ExpressionStatement" ? r.left.type === "ObjectPattern" : !(n === "key" && s.type === "TSPropertySignature" || s.type === "AssignmentExpression" || s.type === "SequenceExpression" && c.type === "ForStatement" && (c.init === s || c.update === s) || n === "value" && s.type === "Property" && c.type === "ObjectPattern" && c.properties.includes(s) || s.type === "NGChainedExpression");
|
|
1585
1585
|
}
|
|
1586
1586
|
case "ConditionalExpression":
|
|
1587
1587
|
switch (s.type) {
|
|
@@ -1599,7 +1599,7 @@ function Nn(e, t) {
|
|
|
1599
1599
|
case "TSAsExpression":
|
|
1600
1600
|
case "TSSatisfiesExpression":
|
|
1601
1601
|
case "TSNonNullExpression":
|
|
1602
|
-
return
|
|
1602
|
+
return true;
|
|
1603
1603
|
case "NewExpression":
|
|
1604
1604
|
case "CallExpression":
|
|
1605
1605
|
case "OptionalCallExpression":
|
|
@@ -1610,7 +1610,7 @@ function Nn(e, t) {
|
|
|
1610
1610
|
case "OptionalMemberExpression":
|
|
1611
1611
|
return n === "object";
|
|
1612
1612
|
default:
|
|
1613
|
-
return
|
|
1613
|
+
return false;
|
|
1614
1614
|
}
|
|
1615
1615
|
case "FunctionExpression":
|
|
1616
1616
|
switch (s.type) {
|
|
@@ -1619,9 +1619,9 @@ function Nn(e, t) {
|
|
|
1619
1619
|
case "OptionalCallExpression":
|
|
1620
1620
|
return n === "callee";
|
|
1621
1621
|
case "TaggedTemplateExpression":
|
|
1622
|
-
return
|
|
1622
|
+
return true;
|
|
1623
1623
|
default:
|
|
1624
|
-
return
|
|
1624
|
+
return false;
|
|
1625
1625
|
}
|
|
1626
1626
|
case "ArrowFunctionExpression":
|
|
1627
1627
|
switch (s.type) {
|
|
@@ -1643,24 +1643,24 @@ function Nn(e, t) {
|
|
|
1643
1643
|
case "LogicalExpression":
|
|
1644
1644
|
case "AwaitExpression":
|
|
1645
1645
|
case "TSTypeAssertion":
|
|
1646
|
-
return
|
|
1646
|
+
return true;
|
|
1647
1647
|
case "ConditionalExpression":
|
|
1648
1648
|
return n === "test";
|
|
1649
1649
|
default:
|
|
1650
|
-
return
|
|
1650
|
+
return false;
|
|
1651
1651
|
}
|
|
1652
1652
|
case "ClassExpression":
|
|
1653
1653
|
switch (s.type) {
|
|
1654
1654
|
case "NewExpression":
|
|
1655
1655
|
return n === "callee";
|
|
1656
1656
|
default:
|
|
1657
|
-
return
|
|
1657
|
+
return false;
|
|
1658
1658
|
}
|
|
1659
1659
|
case "OptionalMemberExpression":
|
|
1660
1660
|
case "OptionalCallExpression":
|
|
1661
1661
|
case "CallExpression":
|
|
1662
1662
|
case "MemberExpression":
|
|
1663
|
-
if (so(e)) return
|
|
1663
|
+
if (so(e)) return true;
|
|
1664
1664
|
case "TaggedTemplateExpression":
|
|
1665
1665
|
case "TSNonNullExpression":
|
|
1666
1666
|
if (n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression")) {
|
|
@@ -1668,7 +1668,7 @@ function Nn(e, t) {
|
|
|
1668
1668
|
for (; c;) switch (c.type) {
|
|
1669
1669
|
case "CallExpression":
|
|
1670
1670
|
case "OptionalCallExpression":
|
|
1671
|
-
return
|
|
1671
|
+
return true;
|
|
1672
1672
|
case "MemberExpression":
|
|
1673
1673
|
case "OptionalMemberExpression":
|
|
1674
1674
|
case "BindExpression":
|
|
@@ -1681,10 +1681,10 @@ function Nn(e, t) {
|
|
|
1681
1681
|
c = c.expression;
|
|
1682
1682
|
break;
|
|
1683
1683
|
default:
|
|
1684
|
-
return
|
|
1684
|
+
return false;
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
1687
|
-
return
|
|
1687
|
+
return false;
|
|
1688
1688
|
case "BindExpression":
|
|
1689
1689
|
return n === "callee" && (s.type === "BindExpression" || s.type === "NewExpression") || n === "object" && J(s);
|
|
1690
1690
|
case "NGPipeExpression":
|
|
@@ -1695,7 +1695,7 @@ function Nn(e, t) {
|
|
|
1695
1695
|
case "TSInstantiationExpression":
|
|
1696
1696
|
return n === "object" && J(s);
|
|
1697
1697
|
}
|
|
1698
|
-
return
|
|
1698
|
+
return false;
|
|
1699
1699
|
}
|
|
1700
1700
|
var eo = j(["BlockStatement", "BreakStatement", "ClassBody", "ClassDeclaration", "ClassMethod", "ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ContinueStatement", "DebuggerStatement", "DeclareClass", "DeclareExportAllDeclaration", "DeclareExportDeclaration", "DeclareFunction", "DeclareInterface", "DeclareModule", "DeclareModuleExports", "DeclareVariable", "DeclareEnum", "DoWhileStatement", "EnumDeclaration", "ExportAllDeclaration", "ExportDefaultDeclaration", "ExportNamedDeclaration", "ExpressionStatement", "ForInStatement", "ForOfStatement", "ForStatement", "FunctionDeclaration", "IfStatement", "ImportDeclaration", "InterfaceDeclaration", "LabeledStatement", "MethodDefinition", "ReturnStatement", "SwitchStatement", "ThrowStatement", "TryStatement", "TSDeclareFunction", "TSEnumDeclaration", "TSImportEqualsDeclaration", "TSInterfaceDeclaration", "TSModuleDeclaration", "TSNamespaceExportDeclaration", "TypeAlias", "VariableDeclaration", "WhileStatement", "WithStatement"]);
|
|
1701
1701
|
function to(e) {
|
|
@@ -1705,10 +1705,10 @@ function to(e) {
|
|
|
1705
1705
|
} = e;
|
|
1706
1706
|
for (; r;) {
|
|
1707
1707
|
let n = e.getParentNode(t++);
|
|
1708
|
-
if ((n == null ? void 0 : n.type) === "ForStatement" && n.init === r) return
|
|
1708
|
+
if ((n == null ? void 0 : n.type) === "ForStatement" && n.init === r) return true;
|
|
1709
1709
|
r = n;
|
|
1710
1710
|
}
|
|
1711
|
-
return
|
|
1711
|
+
return false;
|
|
1712
1712
|
}
|
|
1713
1713
|
function ro(e) {
|
|
1714
1714
|
return Xt(e, t => t.type === "ObjectTypeAnnotation" && Xt(t, r => r.type === "FunctionTypeAnnotation"));
|
|
@@ -1739,14 +1739,14 @@ function Qt(e) {
|
|
|
1739
1739
|
if (t.prefix) return e.callParent(Qt);
|
|
1740
1740
|
break;
|
|
1741
1741
|
}
|
|
1742
|
-
return
|
|
1742
|
+
return false;
|
|
1743
1743
|
}
|
|
1744
1744
|
function ou(e, t) {
|
|
1745
1745
|
let {
|
|
1746
1746
|
node: r,
|
|
1747
1747
|
parent: n
|
|
1748
1748
|
} = e;
|
|
1749
|
-
return r.type === "FunctionExpression" || r.type === "ClassExpression" ? n.type === "ExportDefaultDeclaration" || !Nn(e, t) : !Lt(r) || n.type !== "ExportDefaultDeclaration" && Nn(e, t) ?
|
|
1749
|
+
return r.type === "FunctionExpression" || r.type === "ClassExpression" ? n.type === "ExportDefaultDeclaration" || !Nn(e, t) : !Lt(r) || n.type !== "ExportDefaultDeclaration" && Nn(e, t) ? false : e.call(() => ou(e, t), ...Ar(r));
|
|
1750
1750
|
}
|
|
1751
1751
|
function so(e) {
|
|
1752
1752
|
let {
|
|
@@ -1765,22 +1765,22 @@ var uo = (e, t, r, n) => {
|
|
|
1765
1765
|
function io(e, t) {
|
|
1766
1766
|
let r = t - 1;
|
|
1767
1767
|
r = We(e, r, {
|
|
1768
|
-
backwards:
|
|
1768
|
+
backwards: true
|
|
1769
1769
|
}), r = Ye(e, r, {
|
|
1770
|
-
backwards:
|
|
1770
|
+
backwards: true
|
|
1771
1771
|
}), r = We(e, r, {
|
|
1772
|
-
backwards:
|
|
1772
|
+
backwards: true
|
|
1773
1773
|
});
|
|
1774
1774
|
let n = Ye(e, r, {
|
|
1775
|
-
backwards:
|
|
1775
|
+
backwards: true
|
|
1776
1776
|
});
|
|
1777
1777
|
return r !== n;
|
|
1778
1778
|
}
|
|
1779
1779
|
var pu = io;
|
|
1780
|
-
var ao = () =>
|
|
1780
|
+
var ao = () => true;
|
|
1781
1781
|
function Un(e, t) {
|
|
1782
1782
|
let r = e.node;
|
|
1783
|
-
return r.printed =
|
|
1783
|
+
return r.printed = true, t.printer.printComment(e, t);
|
|
1784
1784
|
}
|
|
1785
1785
|
function oo(e, t) {
|
|
1786
1786
|
var m;
|
|
@@ -1794,12 +1794,12 @@ function oo(e, t) {
|
|
|
1794
1794
|
} = t;
|
|
1795
1795
|
if ((m = s.isBlockComment) == null ? void 0 : m.call(s, r)) {
|
|
1796
1796
|
let y = z(u, a(r)) ? z(u, i(r), {
|
|
1797
|
-
backwards:
|
|
1797
|
+
backwards: true
|
|
1798
1798
|
}) ? C : A : " ";
|
|
1799
1799
|
n.push(y);
|
|
1800
1800
|
} else n.push(C);
|
|
1801
1801
|
let p = Ye(u, We(u, a(r)));
|
|
1802
|
-
return p !==
|
|
1802
|
+
return p !== false && z(u, p) && n.push(C), n;
|
|
1803
1803
|
}
|
|
1804
1804
|
function po(e, t, r) {
|
|
1805
1805
|
var p;
|
|
@@ -1812,23 +1812,23 @@ function po(e, t, r) {
|
|
|
1812
1812
|
} = t,
|
|
1813
1813
|
o = (p = u.isBlockComment) == null ? void 0 : p.call(u, n);
|
|
1814
1814
|
if (r != null && r.hasLineSuffix && !(r != null && r.isBlock) || z(i, a(n), {
|
|
1815
|
-
backwards:
|
|
1815
|
+
backwards: true
|
|
1816
1816
|
})) {
|
|
1817
1817
|
let m = pu(i, a(n));
|
|
1818
1818
|
return {
|
|
1819
1819
|
doc: Bn([C, m ? C : "", s]),
|
|
1820
1820
|
isBlock: o,
|
|
1821
|
-
hasLineSuffix:
|
|
1821
|
+
hasLineSuffix: true
|
|
1822
1822
|
};
|
|
1823
1823
|
}
|
|
1824
1824
|
return !o || r != null && r.hasLineSuffix ? {
|
|
1825
1825
|
doc: [Bn([" ", s]), Ae],
|
|
1826
1826
|
isBlock: o,
|
|
1827
|
-
hasLineSuffix:
|
|
1827
|
+
hasLineSuffix: true
|
|
1828
1828
|
} : {
|
|
1829
1829
|
doc: [" ", s],
|
|
1830
1830
|
isBlock: o,
|
|
1831
|
-
hasLineSuffix:
|
|
1831
|
+
hasLineSuffix: false
|
|
1832
1832
|
};
|
|
1833
1833
|
}
|
|
1834
1834
|
function M(e, t, r = {}) {
|
|
@@ -1837,7 +1837,7 @@ function M(e, t, r = {}) {
|
|
|
1837
1837
|
} = e;
|
|
1838
1838
|
if (!P(n == null ? void 0 : n.comments)) return "";
|
|
1839
1839
|
let {
|
|
1840
|
-
indent: s =
|
|
1840
|
+
indent: s = false,
|
|
1841
1841
|
marker: u,
|
|
1842
1842
|
filter: i = ao
|
|
1843
1843
|
} = r,
|
|
@@ -1891,7 +1891,7 @@ var qn = class extends Error {
|
|
|
1891
1891
|
var br = "'",
|
|
1892
1892
|
cu = '"';
|
|
1893
1893
|
function co(e, t) {
|
|
1894
|
-
let r = t ===
|
|
1894
|
+
let r = t === true || t === br ? br : cu,
|
|
1895
1895
|
n = r === br ? cu : br,
|
|
1896
1896
|
s = 0,
|
|
1897
1897
|
u = 0;
|
|
@@ -1933,7 +1933,7 @@ var ve,
|
|
|
1933
1933
|
return nt(this, ve).has(t.charAt(0));
|
|
1934
1934
|
}
|
|
1935
1935
|
hasTrailingWhitespace(t) {
|
|
1936
|
-
return nt(this, ve).has(w(
|
|
1936
|
+
return nt(this, ve).has(w(false, t, -1));
|
|
1937
1937
|
}
|
|
1938
1938
|
trimStart(t) {
|
|
1939
1939
|
let r = this.getLeadingWhitespaceCount(t);
|
|
@@ -1946,7 +1946,7 @@ var ve,
|
|
|
1946
1946
|
trim(t) {
|
|
1947
1947
|
return this.trimEnd(this.trimStart(t));
|
|
1948
1948
|
}
|
|
1949
|
-
split(t, r =
|
|
1949
|
+
split(t, r = false) {
|
|
1950
1950
|
let n = `[${Wn([...nt(this, ve)].join(""))}]+`,
|
|
1951
1951
|
s = new RegExp(r ? `(${n})` : n);
|
|
1952
1952
|
return t.split(s);
|
|
@@ -1981,13 +1981,13 @@ function lo(e, t) {
|
|
|
1981
1981
|
var Xe = lo;
|
|
1982
1982
|
function mo(e, t) {
|
|
1983
1983
|
let r = Xe(e, t);
|
|
1984
|
-
return r ===
|
|
1984
|
+
return r === false ? "" : e.charAt(r);
|
|
1985
1985
|
}
|
|
1986
1986
|
var $e = mo;
|
|
1987
1987
|
function Do(e, t, r) {
|
|
1988
1988
|
for (let n = t; n < r; ++n) if (e.charAt(n) === `
|
|
1989
|
-
`) return
|
|
1990
|
-
return
|
|
1989
|
+
`) return true;
|
|
1990
|
+
return false;
|
|
1991
1991
|
}
|
|
1992
1992
|
var yt = Do;
|
|
1993
1993
|
function yo(e) {
|
|
@@ -1996,16 +1996,16 @@ function yo(e) {
|
|
|
1996
1996
|
return r.length > 20 && (r = r.slice(0, 19) + "\u2026"), t + (r ? " " + r : "");
|
|
1997
1997
|
}
|
|
1998
1998
|
function Xn(e, t) {
|
|
1999
|
-
(e.comments ?? (e.comments = [])).push(t), t.printed =
|
|
1999
|
+
(e.comments ?? (e.comments = [])).push(t), t.printed = false, t.nodeDescription = yo(e);
|
|
2000
2000
|
}
|
|
2001
2001
|
function ne(e, t) {
|
|
2002
|
-
t.leading =
|
|
2002
|
+
t.leading = true, t.trailing = false, Xn(e, t);
|
|
2003
2003
|
}
|
|
2004
2004
|
function _e(e, t, r) {
|
|
2005
|
-
t.leading =
|
|
2005
|
+
t.leading = false, t.trailing = false, r && (t.marker = r), Xn(e, t);
|
|
2006
2006
|
}
|
|
2007
2007
|
function te(e, t) {
|
|
2008
|
-
t.leading =
|
|
2008
|
+
t.leading = false, t.trailing = true, Xn(e, t);
|
|
2009
2009
|
}
|
|
2010
2010
|
function fo(e) {
|
|
2011
2011
|
return ae(e) && e.value[0] === "*" && /@(?:type|satisfies)\b/.test(e.value);
|
|
@@ -2033,7 +2033,7 @@ function Ao({
|
|
|
2033
2033
|
comment: e,
|
|
2034
2034
|
followingNode: t
|
|
2035
2035
|
}) {
|
|
2036
|
-
return t && mu(e) ? (ne(t, e),
|
|
2036
|
+
return t && mu(e) ? (ne(t, e), true) : false;
|
|
2037
2037
|
}
|
|
2038
2038
|
function Vn({
|
|
2039
2039
|
comment: e,
|
|
@@ -2042,17 +2042,17 @@ function Vn({
|
|
|
2042
2042
|
followingNode: n,
|
|
2043
2043
|
text: s
|
|
2044
2044
|
}) {
|
|
2045
|
-
if ((r == null ? void 0 : r.type) !== "IfStatement" || !n) return
|
|
2046
|
-
if ($e(s, O(e)) === ")") return te(t, e),
|
|
2045
|
+
if ((r == null ? void 0 : r.type) !== "IfStatement" || !n) return false;
|
|
2046
|
+
if ($e(s, O(e)) === ")") return te(t, e), true;
|
|
2047
2047
|
if (t === r.consequent && n === r.alternate) {
|
|
2048
2048
|
if (t.type === "BlockStatement") te(t, e);else {
|
|
2049
2049
|
let i = e.type === "SingleLine" || e.loc.start.line === e.loc.end.line,
|
|
2050
2050
|
a = e.loc.start.line === t.loc.start.line;
|
|
2051
2051
|
i && a ? _e(t, e, zt) : _e(r, e);
|
|
2052
2052
|
}
|
|
2053
|
-
return
|
|
2053
|
+
return true;
|
|
2054
2054
|
}
|
|
2055
|
-
return n.type === "BlockStatement" ? (At(n, e),
|
|
2055
|
+
return n.type === "BlockStatement" ? (At(n, e), true) : n.type === "IfStatement" ? ($n(n.consequent, e), true) : r.consequent === n ? (ne(n, e), true) : false;
|
|
2056
2056
|
}
|
|
2057
2057
|
function Hn({
|
|
2058
2058
|
comment: e,
|
|
@@ -2061,7 +2061,7 @@ function Hn({
|
|
|
2061
2061
|
followingNode: n,
|
|
2062
2062
|
text: s
|
|
2063
2063
|
}) {
|
|
2064
|
-
return (r == null ? void 0 : r.type) !== "WhileStatement" || !n ?
|
|
2064
|
+
return (r == null ? void 0 : r.type) !== "WhileStatement" || !n ? false : $e(s, O(e)) === ")" ? (te(t, e), true) : n.type === "BlockStatement" ? (At(n, e), true) : r.body === n ? (ne(n, e), true) : false;
|
|
2065
2065
|
}
|
|
2066
2066
|
function Du({
|
|
2067
2067
|
comment: e,
|
|
@@ -2069,14 +2069,14 @@ function Du({
|
|
|
2069
2069
|
enclosingNode: r,
|
|
2070
2070
|
followingNode: n
|
|
2071
2071
|
}) {
|
|
2072
|
-
return (r == null ? void 0 : r.type) !== "TryStatement" && (r == null ? void 0 : r.type) !== "CatchClause" || !n ?
|
|
2072
|
+
return (r == null ? void 0 : r.type) !== "TryStatement" && (r == null ? void 0 : r.type) !== "CatchClause" || !n ? false : r.type === "CatchClause" && t ? (te(t, e), true) : n.type === "BlockStatement" ? (At(n, e), true) : n.type === "TryStatement" ? ($n(n.finalizer, e), true) : n.type === "CatchClause" ? ($n(n.body, e), true) : false;
|
|
2073
2073
|
}
|
|
2074
2074
|
function To({
|
|
2075
2075
|
comment: e,
|
|
2076
2076
|
enclosingNode: t,
|
|
2077
2077
|
followingNode: r
|
|
2078
2078
|
}) {
|
|
2079
|
-
return J(t) && (r == null ? void 0 : r.type) === "Identifier" ? (ne(t, e),
|
|
2079
|
+
return J(t) && (r == null ? void 0 : r.type) === "Identifier" ? (ne(t, e), true) : false;
|
|
2080
2080
|
}
|
|
2081
2081
|
function xo({
|
|
2082
2082
|
comment: e,
|
|
@@ -2086,14 +2086,14 @@ function xo({
|
|
|
2086
2086
|
text: s
|
|
2087
2087
|
}) {
|
|
2088
2088
|
let u = t && !yt(s, O(t), U(e));
|
|
2089
|
-
return (!t || !u) && ((r == null ? void 0 : r.type) === "ConditionalExpression" || (r == null ? void 0 : r.type) === "TSConditionalType") && n ? (ne(n, e),
|
|
2089
|
+
return (!t || !u) && ((r == null ? void 0 : r.type) === "ConditionalExpression" || (r == null ? void 0 : r.type) === "TSConditionalType") && n ? (ne(n, e), true) : false;
|
|
2090
2090
|
}
|
|
2091
2091
|
function go({
|
|
2092
2092
|
comment: e,
|
|
2093
2093
|
precedingNode: t,
|
|
2094
2094
|
enclosingNode: r
|
|
2095
2095
|
}) {
|
|
2096
|
-
return fe(r) && r.shorthand && r.key === t && r.value.type === "AssignmentPattern" ? (te(r.value.left, e),
|
|
2096
|
+
return fe(r) && r.shorthand && r.key === t && r.value.type === "AssignmentPattern" ? (te(r.value.left, e), true) : false;
|
|
2097
2097
|
}
|
|
2098
2098
|
var ho = new Set(["ClassDeclaration", "ClassExpression", "DeclareClass", "DeclareInterface", "InterfaceDeclaration", "TSInterfaceDeclaration"]);
|
|
2099
2099
|
function yu({
|
|
@@ -2103,14 +2103,14 @@ function yu({
|
|
|
2103
2103
|
followingNode: n
|
|
2104
2104
|
}) {
|
|
2105
2105
|
if (ho.has(r == null ? void 0 : r.type)) {
|
|
2106
|
-
if (P(r.decorators) && (n == null ? void 0 : n.type) !== "Decorator") return te(w(
|
|
2107
|
-
if (r.body && n === r.body) return At(r.body, e),
|
|
2106
|
+
if (P(r.decorators) && (n == null ? void 0 : n.type) !== "Decorator") return te(w(false, r.decorators, -1), e), true;
|
|
2107
|
+
if (r.body && n === r.body) return At(r.body, e), true;
|
|
2108
2108
|
if (n) {
|
|
2109
|
-
if (r.superClass && n === r.superClass && t && (t === r.id || t === r.typeParameters)) return te(t, e),
|
|
2110
|
-
for (let s of ["implements", "extends", "mixins"]) if (r[s] && n === r[s][0]) return t && (t === r.id || t === r.typeParameters || t === r.superClass) ? te(t, e) : _e(r, e, s),
|
|
2109
|
+
if (r.superClass && n === r.superClass && t && (t === r.id || t === r.typeParameters)) return te(t, e), true;
|
|
2110
|
+
for (let s of ["implements", "extends", "mixins"]) if (r[s] && n === r[s][0]) return t && (t === r.id || t === r.typeParameters || t === r.superClass) ? te(t, e) : _e(r, e, s), true;
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
|
-
return
|
|
2113
|
+
return false;
|
|
2114
2114
|
}
|
|
2115
2115
|
var So = new Set(["ClassMethod", "ClassProperty", "PropertyDefinition", "TSAbstractPropertyDefinition", "TSAbstractMethodDefinition", "TSDeclareMethod", "MethodDefinition", "ClassAccessorProperty", "AccessorProperty", "TSAbstractAccessorProperty"]);
|
|
2116
2116
|
function fu({
|
|
@@ -2119,7 +2119,7 @@ function fu({
|
|
|
2119
2119
|
enclosingNode: r,
|
|
2120
2120
|
text: n
|
|
2121
2121
|
}) {
|
|
2122
|
-
return r && t && $e(n, O(e)) === "(" && (r.type === "Property" || r.type === "TSDeclareMethod" || r.type === "TSAbstractMethodDefinition") && t.type === "Identifier" && r.key === t && $e(n, O(t)) !== ":" ? (te(t, e),
|
|
2122
|
+
return r && t && $e(n, O(e)) === "(" && (r.type === "Property" || r.type === "TSDeclareMethod" || r.type === "TSAbstractMethodDefinition") && t.type === "Identifier" && r.key === t && $e(n, O(t)) !== ":" ? (te(t, e), true) : (t == null ? void 0 : t.type) === "Decorator" && So.has(r == null ? void 0 : r.type) ? (te(t, e), true) : false;
|
|
2123
2123
|
}
|
|
2124
2124
|
var Bo = new Set(["FunctionDeclaration", "FunctionExpression", "ClassMethod", "MethodDefinition", "ObjectMethod"]);
|
|
2125
2125
|
function bo({
|
|
@@ -2128,23 +2128,23 @@ function bo({
|
|
|
2128
2128
|
enclosingNode: r,
|
|
2129
2129
|
text: n
|
|
2130
2130
|
}) {
|
|
2131
|
-
return $e(n, O(e)) !== "(" ?
|
|
2131
|
+
return $e(n, O(e)) !== "(" ? false : t && Bo.has(r == null ? void 0 : r.type) ? (te(t, e), true) : false;
|
|
2132
2132
|
}
|
|
2133
2133
|
function Po({
|
|
2134
2134
|
comment: e,
|
|
2135
2135
|
enclosingNode: t,
|
|
2136
2136
|
text: r
|
|
2137
2137
|
}) {
|
|
2138
|
-
if ((t == null ? void 0 : t.type) !== "ArrowFunctionExpression") return
|
|
2138
|
+
if ((t == null ? void 0 : t.type) !== "ArrowFunctionExpression") return false;
|
|
2139
2139
|
let n = Xe(r, O(e));
|
|
2140
|
-
return n !==
|
|
2140
|
+
return n !== false && r.slice(n, n + 2) === "=>" ? (_e(t, e), true) : false;
|
|
2141
2141
|
}
|
|
2142
2142
|
function ko({
|
|
2143
2143
|
comment: e,
|
|
2144
2144
|
enclosingNode: t,
|
|
2145
2145
|
text: r
|
|
2146
2146
|
}) {
|
|
2147
|
-
return $e(r, O(e)) !== ")" ?
|
|
2147
|
+
return $e(r, O(e)) !== ")" ? false : t && (Au(t) && Y(t).length === 0 || ut(t) && he(t).length === 0) ? (_e(t, e), true) : ((t == null ? void 0 : t.type) === "MethodDefinition" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && Y(t.value).length === 0 ? (_e(t.value, e), true) : false;
|
|
2148
2148
|
}
|
|
2149
2149
|
function Eu({
|
|
2150
2150
|
comment: e,
|
|
@@ -2153,37 +2153,37 @@ function Eu({
|
|
|
2153
2153
|
followingNode: n,
|
|
2154
2154
|
text: s
|
|
2155
2155
|
}) {
|
|
2156
|
-
if ((t == null ? void 0 : t.type) === "FunctionTypeParam" && (r == null ? void 0 : r.type) === "FunctionTypeAnnotation" && (n == null ? void 0 : n.type) !== "FunctionTypeParam") return te(t, e),
|
|
2157
|
-
if (((t == null ? void 0 : t.type) === "Identifier" || (t == null ? void 0 : t.type) === "AssignmentPattern" || (t == null ? void 0 : t.type) === "ObjectPattern" || (t == null ? void 0 : t.type) === "ArrayPattern" || (t == null ? void 0 : t.type) === "RestElement") && r && Au(r) && $e(s, O(e)) === ")") return te(t, e),
|
|
2156
|
+
if ((t == null ? void 0 : t.type) === "FunctionTypeParam" && (r == null ? void 0 : r.type) === "FunctionTypeAnnotation" && (n == null ? void 0 : n.type) !== "FunctionTypeParam") return te(t, e), true;
|
|
2157
|
+
if (((t == null ? void 0 : t.type) === "Identifier" || (t == null ? void 0 : t.type) === "AssignmentPattern" || (t == null ? void 0 : t.type) === "ObjectPattern" || (t == null ? void 0 : t.type) === "ArrayPattern" || (t == null ? void 0 : t.type) === "RestElement") && r && Au(r) && $e(s, O(e)) === ")") return te(t, e), true;
|
|
2158
2158
|
if ((r == null ? void 0 : r.type) === "FunctionDeclaration" && (n == null ? void 0 : n.type) === "BlockStatement") {
|
|
2159
2159
|
let u = (() => {
|
|
2160
2160
|
let i = Y(r);
|
|
2161
|
-
if (i.length > 0) return Xe(s, O(w(
|
|
2161
|
+
if (i.length > 0) return Xe(s, O(w(false, i, -1)));
|
|
2162
2162
|
let a = Xe(s, O(r.id));
|
|
2163
|
-
return a !==
|
|
2163
|
+
return a !== false && Xe(s, a + 1);
|
|
2164
2164
|
})();
|
|
2165
|
-
if (U(e) > u) return At(n, e),
|
|
2165
|
+
if (U(e) > u) return At(n, e), true;
|
|
2166
2166
|
}
|
|
2167
|
-
return
|
|
2167
|
+
return false;
|
|
2168
2168
|
}
|
|
2169
2169
|
function Fu({
|
|
2170
2170
|
comment: e,
|
|
2171
2171
|
enclosingNode: t
|
|
2172
2172
|
}) {
|
|
2173
|
-
return (t == null ? void 0 : t.type) === "LabeledStatement" ? (ne(t, e),
|
|
2173
|
+
return (t == null ? void 0 : t.type) === "LabeledStatement" ? (ne(t, e), true) : false;
|
|
2174
2174
|
}
|
|
2175
2175
|
function Kn({
|
|
2176
2176
|
comment: e,
|
|
2177
2177
|
enclosingNode: t
|
|
2178
2178
|
}) {
|
|
2179
|
-
return ((t == null ? void 0 : t.type) === "ContinueStatement" || (t == null ? void 0 : t.type) === "BreakStatement") && !t.label ? (te(t, e),
|
|
2179
|
+
return ((t == null ? void 0 : t.type) === "ContinueStatement" || (t == null ? void 0 : t.type) === "BreakStatement") && !t.label ? (te(t, e), true) : false;
|
|
2180
2180
|
}
|
|
2181
2181
|
function Io({
|
|
2182
2182
|
comment: e,
|
|
2183
2183
|
precedingNode: t,
|
|
2184
2184
|
enclosingNode: r
|
|
2185
2185
|
}) {
|
|
2186
|
-
return k(r) && t && r.callee === t && r.arguments.length > 0 ? (ne(r.arguments[0], e),
|
|
2186
|
+
return k(r) && t && r.callee === t && r.arguments.length > 0 ? (ne(r.arguments[0], e), true) : false;
|
|
2187
2187
|
}
|
|
2188
2188
|
function Lo({
|
|
2189
2189
|
comment: e,
|
|
@@ -2191,13 +2191,13 @@ function Lo({
|
|
|
2191
2191
|
enclosingNode: r,
|
|
2192
2192
|
followingNode: n
|
|
2193
2193
|
}) {
|
|
2194
|
-
return (r == null ? void 0 : r.type) === "UnionTypeAnnotation" || (r == null ? void 0 : r.type) === "TSUnionType" ? (Ht(e) && (n.prettierIgnore =
|
|
2194
|
+
return (r == null ? void 0 : r.type) === "UnionTypeAnnotation" || (r == null ? void 0 : r.type) === "TSUnionType" ? (Ht(e) && (n.prettierIgnore = true, e.unignore = true), t ? (te(t, e), true) : false) : (((n == null ? void 0 : n.type) === "UnionTypeAnnotation" || (n == null ? void 0 : n.type) === "TSUnionType") && Ht(e) && (n.types[0].prettierIgnore = true, e.unignore = true), false);
|
|
2195
2195
|
}
|
|
2196
2196
|
function wo({
|
|
2197
2197
|
comment: e,
|
|
2198
2198
|
enclosingNode: t
|
|
2199
2199
|
}) {
|
|
2200
|
-
return fe(t) ? (ne(t, e),
|
|
2200
|
+
return fe(t) ? (ne(t, e), true) : false;
|
|
2201
2201
|
}
|
|
2202
2202
|
function zn({
|
|
2203
2203
|
comment: e,
|
|
@@ -2207,13 +2207,13 @@ function zn({
|
|
|
2207
2207
|
isLastComment: s
|
|
2208
2208
|
}) {
|
|
2209
2209
|
var u;
|
|
2210
|
-
return ((u = n == null ? void 0 : n.body) == null ? void 0 : u.length) === 0 ? (s ? _e(n, e) : ne(n, e),
|
|
2210
|
+
return ((u = n == null ? void 0 : n.body) == null ? void 0 : u.length) === 0 ? (s ? _e(n, e) : ne(n, e), true) : (t == null ? void 0 : t.type) === "Program" && t.body.length === 0 && !P(t.directives) ? (s ? _e(t, e) : ne(t, e), true) : (r == null ? void 0 : r.type) === "Program" && r.body.length === 0 && (t == null ? void 0 : t.type) === "ModuleExpression" ? (_e(r, e), true) : false;
|
|
2211
2211
|
}
|
|
2212
2212
|
function Oo({
|
|
2213
2213
|
comment: e,
|
|
2214
2214
|
enclosingNode: t
|
|
2215
2215
|
}) {
|
|
2216
|
-
return (t == null ? void 0 : t.type) === "ForInStatement" || (t == null ? void 0 : t.type) === "ForOfStatement" ? (ne(t, e),
|
|
2216
|
+
return (t == null ? void 0 : t.type) === "ForInStatement" || (t == null ? void 0 : t.type) === "ForOfStatement" ? (ne(t, e), true) : false;
|
|
2217
2217
|
}
|
|
2218
2218
|
function Cu({
|
|
2219
2219
|
comment: e,
|
|
@@ -2221,16 +2221,16 @@ function Cu({
|
|
|
2221
2221
|
enclosingNode: r,
|
|
2222
2222
|
text: n
|
|
2223
2223
|
}) {
|
|
2224
|
-
if ((r == null ? void 0 : r.type) === "ImportSpecifier" || (r == null ? void 0 : r.type) === "ExportSpecifier") return ne(r, e),
|
|
2224
|
+
if ((r == null ? void 0 : r.type) === "ImportSpecifier" || (r == null ? void 0 : r.type) === "ExportSpecifier") return ne(r, e), true;
|
|
2225
2225
|
let s = (t == null ? void 0 : t.type) === "ImportSpecifier" && (r == null ? void 0 : r.type) === "ImportDeclaration",
|
|
2226
2226
|
u = (t == null ? void 0 : t.type) === "ExportSpecifier" && (r == null ? void 0 : r.type) === "ExportNamedDeclaration";
|
|
2227
|
-
return (s || u) && z(n, O(e)) ? (te(t, e),
|
|
2227
|
+
return (s || u) && z(n, O(e)) ? (te(t, e), true) : false;
|
|
2228
2228
|
}
|
|
2229
2229
|
function vo({
|
|
2230
2230
|
comment: e,
|
|
2231
2231
|
enclosingNode: t
|
|
2232
2232
|
}) {
|
|
2233
|
-
return (t == null ? void 0 : t.type) === "AssignmentPattern" ? (ne(t, e),
|
|
2233
|
+
return (t == null ? void 0 : t.type) === "AssignmentPattern" ? (ne(t, e), true) : false;
|
|
2234
2234
|
}
|
|
2235
2235
|
var _o = new Set(["VariableDeclarator", "AssignmentExpression", "TypeAlias", "TSTypeAliasDeclaration"]),
|
|
2236
2236
|
jo = new Set(["ObjectExpression", "RecordExpression", "ArrayExpression", "TupleExpression", "TemplateLiteral", "TaggedTemplateExpression", "ObjectTypeAnnotation", "TSTypeLiteral"]);
|
|
@@ -2239,7 +2239,7 @@ function Mo({
|
|
|
2239
2239
|
enclosingNode: t,
|
|
2240
2240
|
followingNode: r
|
|
2241
2241
|
}) {
|
|
2242
|
-
return _o.has(t == null ? void 0 : t.type) && r && (jo.has(r.type) || ae(e)) ? (ne(r, e),
|
|
2242
|
+
return _o.has(t == null ? void 0 : t.type) && r && (jo.has(r.type) || ae(e)) ? (ne(r, e), true) : false;
|
|
2243
2243
|
}
|
|
2244
2244
|
function Ro({
|
|
2245
2245
|
comment: e,
|
|
@@ -2247,14 +2247,14 @@ function Ro({
|
|
|
2247
2247
|
followingNode: r,
|
|
2248
2248
|
text: n
|
|
2249
2249
|
}) {
|
|
2250
|
-
return !r && ((t == null ? void 0 : t.type) === "TSMethodSignature" || (t == null ? void 0 : t.type) === "TSDeclareFunction" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && $e(n, O(e)) === ";" ? (te(t, e),
|
|
2250
|
+
return !r && ((t == null ? void 0 : t.type) === "TSMethodSignature" || (t == null ? void 0 : t.type) === "TSDeclareFunction" || (t == null ? void 0 : t.type) === "TSAbstractMethodDefinition") && $e(n, O(e)) === ";" ? (te(t, e), true) : false;
|
|
2251
2251
|
}
|
|
2252
2252
|
function du({
|
|
2253
2253
|
comment: e,
|
|
2254
2254
|
enclosingNode: t,
|
|
2255
2255
|
followingNode: r
|
|
2256
2256
|
}) {
|
|
2257
|
-
if (Ht(e) && (t == null ? void 0 : t.type) === "TSMappedType" && (r == null ? void 0 : r.type) === "TSTypeParameter" && r.constraint) return t.prettierIgnore =
|
|
2257
|
+
if (Ht(e) && (t == null ? void 0 : t.type) === "TSMappedType" && (r == null ? void 0 : r.type) === "TSTypeParameter" && r.constraint) return t.prettierIgnore = true, e.unignore = true, true;
|
|
2258
2258
|
}
|
|
2259
2259
|
function Jo({
|
|
2260
2260
|
comment: e,
|
|
@@ -2262,14 +2262,14 @@ function Jo({
|
|
|
2262
2262
|
enclosingNode: r,
|
|
2263
2263
|
followingNode: n
|
|
2264
2264
|
}) {
|
|
2265
|
-
return (r == null ? void 0 : r.type) !== "TSMappedType" ?
|
|
2265
|
+
return (r == null ? void 0 : r.type) !== "TSMappedType" ? false : (n == null ? void 0 : n.type) === "TSTypeParameter" && n.name ? (ne(n.name, e), true) : (t == null ? void 0 : t.type) === "TSTypeParameter" && t.constraint ? (te(t.constraint, e), true) : false;
|
|
2266
2266
|
}
|
|
2267
2267
|
function No({
|
|
2268
2268
|
comment: e,
|
|
2269
2269
|
enclosingNode: t,
|
|
2270
2270
|
followingNode: r
|
|
2271
2271
|
}) {
|
|
2272
|
-
return !t || t.type !== "SwitchCase" || t.test || !r || r !== t.consequent[0] ?
|
|
2272
|
+
return !t || t.type !== "SwitchCase" || t.test || !r || r !== t.consequent[0] ? false : (r.type === "BlockStatement" && $t(e) ? At(r, e) : _e(t, e), true);
|
|
2273
2273
|
}
|
|
2274
2274
|
var Au = j(["ArrowFunctionExpression", "FunctionExpression", "FunctionDeclaration", "ObjectMethod", "ClassMethod", "TSDeclareFunction", "TSCallSignatureDeclaration", "TSConstructSignatureDeclaration", "TSMethodSignature", "TSConstructorType", "TSFunctionType", "TSDeclareMethod"]);
|
|
2275
2275
|
function Uo(e) {
|
|
@@ -2307,7 +2307,7 @@ function Qn(e) {
|
|
|
2307
2307
|
function Xo(e, {
|
|
2308
2308
|
parser: t
|
|
2309
2309
|
}) {
|
|
2310
|
-
if (t === "flow" || t === "babel-flow") return e = H(
|
|
2310
|
+
if (t === "flow" || t === "babel-flow") return e = H(false, e, /[\s(]/g, ""), e === "" || e === "/*" || e === "/*::";
|
|
2311
2311
|
}
|
|
2312
2312
|
var Ir = new lu(`
|
|
2313
2313
|
\r `),
|
|
@@ -2345,7 +2345,7 @@ function $o(e, t, r) {
|
|
|
2345
2345
|
An = l[T] === F && l[T + 1] === "" && l[T + 2] === C || l[T] === C && l[T + 1] === "" && l[T + 2] === F;
|
|
2346
2346
|
Se && h || N || $ || Ee || An ? l.splice(T, 2) : Be && l.splice(T + 1, 2);
|
|
2347
2347
|
}
|
|
2348
|
-
for (; l.length > 0 && Zn(w(
|
|
2348
|
+
for (; l.length > 0 && Zn(w(false, l, -1));) l.pop();
|
|
2349
2349
|
for (; l.length > 1 && Zn(l[0]) && Zn(l[1]);) l.shift(), l.shift();
|
|
2350
2350
|
let g = [];
|
|
2351
2351
|
for (let [T, N] of l.entries()) {
|
|
@@ -2365,10 +2365,10 @@ function $o(e, t, r) {
|
|
|
2365
2365
|
continue;
|
|
2366
2366
|
}
|
|
2367
2367
|
}
|
|
2368
|
-
g.push(N), K(N) && (p =
|
|
2368
|
+
g.push(N), K(N) && (p = true);
|
|
2369
2369
|
}
|
|
2370
2370
|
let S = h ? St(g) : D(g, {
|
|
2371
|
-
shouldBreak:
|
|
2371
|
+
shouldBreak: true
|
|
2372
2372
|
});
|
|
2373
2373
|
if (((R = t.cursorNode) == null ? void 0 : R.type) === "JSXText" && n.children.includes(t.cursorNode) && (S = [Pn, S, Pn]), m) return S;
|
|
2374
2374
|
let I = D([s, E([C, S]), C, u]);
|
|
@@ -2383,12 +2383,12 @@ function Vo(e, t, r, n, s) {
|
|
|
2383
2383
|
if (i.type === "JSXText") {
|
|
2384
2384
|
let o = oe(i);
|
|
2385
2385
|
if (Zt(i)) {
|
|
2386
|
-
let p = Ir.split(o,
|
|
2386
|
+
let p = Ir.split(o, true);
|
|
2387
2387
|
p[0] === "" && (u.push(""), p.shift(), /\n/.test(p[0]) ? u.push(hu(s, p[1], i, a)) : u.push(n), p.shift());
|
|
2388
2388
|
let m;
|
|
2389
|
-
if (w(
|
|
2389
|
+
if (w(false, p, -1) === "" && (p.pop(), m = p.pop()), p.length === 0) return;
|
|
2390
2390
|
for (let [y, c] of p.entries()) y % 2 === 1 ? u.push(A) : u.push(c);
|
|
2391
|
-
m !== void 0 ? /\n/.test(m) ? u.push(hu(s, w(
|
|
2391
|
+
m !== void 0 ? /\n/.test(m) ? u.push(hu(s, w(false, u, -1), i, a)) : u.push(n) : u.push(gu(s, w(false, u, -1), i, a));
|
|
2392
2392
|
} else /\n/.test(o) ? o.match(/\n/g).length > 1 && u.push("", C) : u.push("", n);
|
|
2393
2393
|
} else {
|
|
2394
2394
|
let o = r();
|
|
@@ -2427,9 +2427,9 @@ function zo(e, t, r) {
|
|
|
2427
2427
|
let u;
|
|
2428
2428
|
if (ee(n.value)) {
|
|
2429
2429
|
let i = oe(n.value),
|
|
2430
|
-
a = H(
|
|
2430
|
+
a = H(false, H(false, i.slice(1, -1), "'", "'"), """, '"'),
|
|
2431
2431
|
o = Pr(a, t.jsxSingleQuote);
|
|
2432
|
-
a = o === '"' ? H(
|
|
2432
|
+
a = o === '"' ? H(false, a, '"', """) : H(false, a, "'", "'"), u = e.call(() => pe(e, Te(o + a + o), t), "value");
|
|
2433
2433
|
} else u = r("value");
|
|
2434
2434
|
s.push("=", u);
|
|
2435
2435
|
}
|
|
@@ -2462,7 +2462,7 @@ function ep(e, t, r) {
|
|
|
2462
2462
|
return e.selfClosing ? [A, "/>"] : tp(e, t, r) ? [">"] : [F, ">"];
|
|
2463
2463
|
}
|
|
2464
2464
|
function tp(e, t, r) {
|
|
2465
|
-
let n = e.attributes.length > 0 && d(w(
|
|
2465
|
+
let n = e.attributes.length > 0 && d(w(false, e.attributes, -1), x.Trailing);
|
|
2466
2466
|
return e.attributes.length === 0 && !r || (t.bracketSameLine || t.jsxBracketSameLine) && (!r || e.attributes.length > 0) && !n;
|
|
2467
2467
|
}
|
|
2468
2468
|
function rp(e, t, r) {
|
|
@@ -2544,8 +2544,8 @@ function Su(e, t, r) {
|
|
|
2544
2544
|
}
|
|
2545
2545
|
}
|
|
2546
2546
|
function ap(e) {
|
|
2547
|
-
if (e.children.length === 0) return
|
|
2548
|
-
if (e.children.length > 1) return
|
|
2547
|
+
if (e.children.length === 0) return true;
|
|
2548
|
+
if (e.children.length > 1) return false;
|
|
2549
2549
|
let t = e.children[0];
|
|
2550
2550
|
return t.type === "JSXText" && !Zt(t);
|
|
2551
2551
|
}
|
|
@@ -2560,7 +2560,7 @@ function Bu(e) {
|
|
|
2560
2560
|
node: t,
|
|
2561
2561
|
parent: r
|
|
2562
2562
|
} = e;
|
|
2563
|
-
if (!V(t) || !V(r)) return
|
|
2563
|
+
if (!V(t) || !V(r)) return false;
|
|
2564
2564
|
let {
|
|
2565
2565
|
index: n,
|
|
2566
2566
|
siblings: s
|
|
@@ -2590,7 +2590,7 @@ function wr(e, t, r) {
|
|
|
2590
2590
|
} = e,
|
|
2591
2591
|
a = i !== "body" && (s.type === "IfStatement" || s.type === "WhileStatement" || s.type === "SwitchStatement" || s.type === "DoWhileStatement"),
|
|
2592
2592
|
o = n.operator === "|>" && ((_ = e.root.extra) == null ? void 0 : _.__isUsingHackPipeline),
|
|
2593
|
-
p = es(e, r, t,
|
|
2593
|
+
p = es(e, r, t, false, a);
|
|
2594
2594
|
if (a) return p;
|
|
2595
2595
|
if (o) return D(p);
|
|
2596
2596
|
if (k(s) && s.callee === n || s.type === "UnaryExpression" || J(s) && !s.computed) return D([E([F, ...p]), F]);
|
|
@@ -2608,7 +2608,7 @@ function wr(e, t, r) {
|
|
|
2608
2608
|
id: S
|
|
2609
2609
|
});
|
|
2610
2610
|
if (!f) return I;
|
|
2611
|
-
let v = w(
|
|
2611
|
+
let v = w(false, p, -1);
|
|
2612
2612
|
return D([I, lt(v, {
|
|
2613
2613
|
groupId: S
|
|
2614
2614
|
})]);
|
|
@@ -2620,14 +2620,14 @@ function es(e, t, r, n, s) {
|
|
|
2620
2620
|
} = e;
|
|
2621
2621
|
if (!ce(u)) return [D(t())];
|
|
2622
2622
|
let i = [];
|
|
2623
|
-
Vt(u.operator, u.left.operator) ? i = e.call(g => es(g, t, r,
|
|
2623
|
+
Vt(u.operator, u.left.operator) ? i = e.call(g => es(g, t, r, true, s), "left") : i.push(D(t("left")));
|
|
2624
2624
|
let a = Ot(u),
|
|
2625
2625
|
o = (u.operator === "|>" || u.type === "NGPipeExpression" || lp(e, r)) && !Ie(r.originalText, u.right),
|
|
2626
2626
|
p = u.type === "NGPipeExpression" ? "|" : u.operator,
|
|
2627
2627
|
m = u.type === "NGPipeExpression" && u.arguments.length > 0 ? D(E([F, ": ", B([A, ": "], e.map(() => ye(2, D(t())), "arguments"))])) : "",
|
|
2628
2628
|
y;
|
|
2629
2629
|
if (a) y = [p, " ", t("right"), m];else {
|
|
2630
|
-
let S = p === "|>" && ((h = e.root.extra) == null ? void 0 : h.__isUsingHackPipeline) ? e.call(I => es(I, t, r,
|
|
2630
|
+
let S = p === "|>" && ((h = e.root.extra) == null ? void 0 : h.__isUsingHackPipeline) ? e.call(I => es(I, t, r, true, s), "right") : t("right");
|
|
2631
2631
|
y = [o ? A : "", p, o ? " " : A, S, m];
|
|
2632
2632
|
}
|
|
2633
2633
|
let {
|
|
@@ -2644,7 +2644,7 @@ function es(e, t, r, n, s) {
|
|
|
2644
2644
|
return i;
|
|
2645
2645
|
}
|
|
2646
2646
|
function Ot(e) {
|
|
2647
|
-
return e.type !== "LogicalExpression" ?
|
|
2647
|
+
return e.type !== "LogicalExpression" ? false : !!(Z(e.right) && e.right.properties.length > 0 || G(e.right) && e.right.elements.length > 0 || V(e.right));
|
|
2648
2648
|
}
|
|
2649
2649
|
var bu = e => e.type === "BinaryExpression" && e.operator === "|";
|
|
2650
2650
|
function lp(e, t) {
|
|
@@ -2658,7 +2658,7 @@ function mp(e, t, r, n) {
|
|
|
2658
2658
|
node: s
|
|
2659
2659
|
} = e;
|
|
2660
2660
|
return d(s, x.Dangling) ? D([r, M(e, t, {
|
|
2661
|
-
indent:
|
|
2661
|
+
indent: true
|
|
2662
2662
|
}), F, n]) : [r, n];
|
|
2663
2663
|
}
|
|
2664
2664
|
function vt(e, t, r) {
|
|
@@ -2671,15 +2671,15 @@ function vt(e, t, r) {
|
|
|
2671
2671
|
a = n.type === "TupleTypeAnnotation" && n.types ? "types" : n.type === "TSTupleType" || n.type === "TupleTypeAnnotation" ? "elementTypes" : "elements",
|
|
2672
2672
|
o = n[a];
|
|
2673
2673
|
if (o.length === 0) s.push(mp(e, t, u, i));else {
|
|
2674
|
-
let p = w(
|
|
2674
|
+
let p = w(false, o, -1),
|
|
2675
2675
|
m = (p == null ? void 0 : p.type) !== "RestElement",
|
|
2676
2676
|
y = p === null,
|
|
2677
2677
|
c = Symbol("array"),
|
|
2678
2678
|
f = !t.__inJestEach && o.length > 1 && o.every((g, S, I) => {
|
|
2679
2679
|
let v = g == null ? void 0 : g.type;
|
|
2680
|
-
if (!G(g) && !Z(g)) return
|
|
2680
|
+
if (!G(g) && !Z(g)) return false;
|
|
2681
2681
|
let _ = I[S + 1];
|
|
2682
|
-
if (_ && v !== _.type) return
|
|
2682
|
+
if (_ && v !== _.type) return false;
|
|
2683
2683
|
let R = G(g) ? "elements" : "properties";
|
|
2684
2684
|
return g[R] && g[R].length > 1;
|
|
2685
2685
|
}),
|
|
@@ -2696,7 +2696,7 @@ function vt(e, t, r) {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
function ts(e, t) {
|
|
2698
2698
|
return G(e) && e.elements.length > 1 && e.elements.every(r => r && (ge(r) || Tr(r) && !d(r.argument)) && !d(r, x.Trailing | x.Line, n => !z(t.originalText, U(n), {
|
|
2699
|
-
backwards:
|
|
2699
|
+
backwards: true
|
|
2700
2700
|
})));
|
|
2701
2701
|
}
|
|
2702
2702
|
function Pu({
|
|
@@ -2733,19 +2733,19 @@ function fp(e, t, r) {
|
|
|
2733
2733
|
s = he(n);
|
|
2734
2734
|
if (s.length === 0) return ["(", M(e, t), ")"];
|
|
2735
2735
|
if (Cp(s)) return ["(", r(["arguments", 0]), ", ", r(["arguments", 1]), ")"];
|
|
2736
|
-
let u =
|
|
2736
|
+
let u = false,
|
|
2737
2737
|
i = s.length - 1,
|
|
2738
2738
|
a = [];
|
|
2739
2739
|
Br(e, ({
|
|
2740
2740
|
node: c
|
|
2741
2741
|
}, f) => {
|
|
2742
2742
|
let l = r();
|
|
2743
|
-
f === i || (me(c, t) ? (u =
|
|
2743
|
+
f === i || (me(c, t) ? (u = true, l = [l, ",", C, C]) : l = [l, ",", A]), a.push(l);
|
|
2744
2744
|
});
|
|
2745
2745
|
let p = !(n.type === "ImportExpression" || n.callee.type === "Import") && le(t, "all") ? "," : "";
|
|
2746
2746
|
function m() {
|
|
2747
2747
|
return D(["(", E([A, ...a]), p, A, ")"], {
|
|
2748
|
-
shouldBreak:
|
|
2748
|
+
shouldBreak: true
|
|
2749
2749
|
});
|
|
2750
2750
|
}
|
|
2751
2751
|
if (u || e.parent.type !== "Decorator" && ru(s)) return m();
|
|
@@ -2762,9 +2762,9 @@ function fp(e, t, r) {
|
|
|
2762
2762
|
throw l;
|
|
2763
2763
|
}
|
|
2764
2764
|
return K(f) ? [Ae, qe([["(", D(f, {
|
|
2765
|
-
shouldBreak:
|
|
2765
|
+
shouldBreak: true
|
|
2766
2766
|
}), ", ", ...c, ")"], m()])] : qe([["(", f, ", ", ...c, ")"], ["(", D(f, {
|
|
2767
|
-
shouldBreak:
|
|
2767
|
+
shouldBreak: true
|
|
2768
2768
|
}), ", ", ...c, ")"], m()]);
|
|
2769
2769
|
}
|
|
2770
2770
|
if (Ep(s, a, t)) {
|
|
@@ -2780,9 +2780,9 @@ function fp(e, t, r) {
|
|
|
2780
2780
|
throw l;
|
|
2781
2781
|
}
|
|
2782
2782
|
return K(f) ? [Ae, qe([["(", ...c, D(f, {
|
|
2783
|
-
shouldBreak:
|
|
2783
|
+
shouldBreak: true
|
|
2784
2784
|
}), ")"], m()])] : qe([["(", ...c, f, ")"], ["(", ...c, D(f, {
|
|
2785
|
-
shouldBreak:
|
|
2785
|
+
shouldBreak: true
|
|
2786
2786
|
}), ")"], m()]);
|
|
2787
2787
|
}
|
|
2788
2788
|
let y = ["(", E([F, ...a]), b(p), F, ")"];
|
|
@@ -2790,23 +2790,23 @@ function fp(e, t, r) {
|
|
|
2790
2790
|
shouldBreak: a.some(K) || u
|
|
2791
2791
|
});
|
|
2792
2792
|
}
|
|
2793
|
-
function er(e, t =
|
|
2794
|
-
return Z(e) && (e.properties.length > 0 || d(e)) || G(e) && (e.elements.length > 0 || d(e)) || e.type === "TSTypeAssertion" && er(e.expression) || Le(e) && er(e.expression) || e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && (!e.returnType || !e.returnType.typeAnnotation || e.returnType.typeAnnotation.type !== "TSTypeReference" || dp(e.body)) && (e.body.type === "BlockStatement" || e.body.type === "ArrowFunctionExpression" && er(e.body,
|
|
2793
|
+
function er(e, t = false) {
|
|
2794
|
+
return Z(e) && (e.properties.length > 0 || d(e)) || G(e) && (e.elements.length > 0 || d(e)) || e.type === "TSTypeAssertion" && er(e.expression) || Le(e) && er(e.expression) || e.type === "FunctionExpression" || e.type === "ArrowFunctionExpression" && (!e.returnType || !e.returnType.typeAnnotation || e.returnType.typeAnnotation.type !== "TSTypeReference" || dp(e.body)) && (e.body.type === "BlockStatement" || e.body.type === "ArrowFunctionExpression" && er(e.body, true) || Z(e.body) || G(e.body) || !t && (k(e.body) || e.body.type === "ConditionalExpression") || V(e.body)) || e.type === "DoExpression" || e.type === "ModuleExpression";
|
|
2795
2795
|
}
|
|
2796
2796
|
function Ep(e, t, r) {
|
|
2797
2797
|
var u, i;
|
|
2798
|
-
let n = w(
|
|
2798
|
+
let n = w(false, e, -1);
|
|
2799
2799
|
if (e.length === 1) {
|
|
2800
|
-
let a = w(
|
|
2801
|
-
if ((u = a.label) != null && u.embed && ((i = a.label) == null ? void 0 : i.hug) !==
|
|
2800
|
+
let a = w(false, t, -1);
|
|
2801
|
+
if ((u = a.label) != null && u.embed && ((i = a.label) == null ? void 0 : i.hug) !== false) return true;
|
|
2802
2802
|
}
|
|
2803
|
-
let s = w(
|
|
2803
|
+
let s = w(false, e, -2);
|
|
2804
2804
|
return !d(n, x.Leading) && !d(n, x.Trailing) && er(n) && (!s || s.type !== n.type) && (e.length !== 2 || s.type !== "ArrowFunctionExpression" || !G(n)) && !(e.length > 1 && ts(n, r));
|
|
2805
2805
|
}
|
|
2806
2806
|
function Fp(e) {
|
|
2807
|
-
if (e.length !== 2) return
|
|
2807
|
+
if (e.length !== 2) return false;
|
|
2808
2808
|
let [t, r] = e;
|
|
2809
|
-
return t.type === "ModuleExpression" && Ap(r) ?
|
|
2809
|
+
return t.type === "ModuleExpression" && Ap(r) ? true : !d(t) && (t.type === "FunctionExpression" || t.type === "ArrowFunctionExpression" && t.body.type === "BlockStatement") && r.type !== "FunctionExpression" && r.type !== "ArrowFunctionExpression" && r.type !== "ConditionalExpression" && ku(r) && !er(r);
|
|
2810
2810
|
}
|
|
2811
2811
|
function ku(e) {
|
|
2812
2812
|
var t;
|
|
@@ -2817,7 +2817,7 @@ function ku(e) {
|
|
|
2817
2817
|
} = e;
|
|
2818
2818
|
return r.type === "TypeAnnotation" && (r = r.typeAnnotation), r.type === "TSArrayType" && (r = r.elementType, r.type === "TSArrayType" && (r = r.elementType)), (r.type === "GenericTypeAnnotation" || r.type === "TSTypeReference") && ((t = r.typeParameters) == null ? void 0 : t.params.length) === 1 && (r = r.typeParameters.params[0]), wt(r) && xe(e.expression, 1);
|
|
2819
2819
|
}
|
|
2820
|
-
return ut(e) && he(e).length > 1 ?
|
|
2820
|
+
return ut(e) && he(e).length > 1 ? false : ce(e) ? xe(e.left, 1) && xe(e.right, 1) : vn(e) || xe(e);
|
|
2821
2821
|
}
|
|
2822
2822
|
function Cp(e) {
|
|
2823
2823
|
return e.length === 2 && e[0].type === "ArrowFunctionExpression" && Y(e[0]).length === 0 && e[0].body.type === "BlockStatement" && e[1].type === "ArrayExpression" && !e.some(t => d(t));
|
|
@@ -2860,7 +2860,7 @@ function Tp(e, t, r) {
|
|
|
2860
2860
|
originalText: W
|
|
2861
2861
|
} = t,
|
|
2862
2862
|
se = Xe(W, O(L));
|
|
2863
|
-
return W.charAt(se) === ")" ? se !==
|
|
2863
|
+
return W.charAt(se) === ")" ? se !== false && kt(W, se + 1) : me(L, t);
|
|
2864
2864
|
}
|
|
2865
2865
|
function a(L) {
|
|
2866
2866
|
let {
|
|
@@ -2894,16 +2894,16 @@ function Tp(e, t, r) {
|
|
|
2894
2894
|
for (; y < u.length && (u[y].node.type === "TSNonNullExpression" || k(u[y].node) || J(u[y].node) && u[y].node.computed && ge(u[y].node.property)); ++y) m.push(u[y]);
|
|
2895
2895
|
if (!k(u[0].node)) for (; y + 1 < u.length && Dt(u[y].node) && Dt(u[y + 1].node); ++y) m.push(u[y]);
|
|
2896
2896
|
p.push(m), m = [];
|
|
2897
|
-
let c =
|
|
2897
|
+
let c = false;
|
|
2898
2898
|
for (; y < u.length; ++y) {
|
|
2899
2899
|
if (c && Dt(u[y].node)) {
|
|
2900
2900
|
if (u[y].node.computed && ge(u[y].node.property)) {
|
|
2901
2901
|
m.push(u[y]);
|
|
2902
2902
|
continue;
|
|
2903
2903
|
}
|
|
2904
|
-
p.push(m), m = [], c =
|
|
2904
|
+
p.push(m), m = [], c = false;
|
|
2905
2905
|
}
|
|
2906
|
-
(k(u[y].node) || u[y].node.type === "ImportExpression") && (c =
|
|
2906
|
+
(k(u[y].node) || u[y].node.type === "ImportExpression") && (c = true), m.push(u[y]), d(u[y].node, x.Trailing) && (p.push(m), m = [], c = false);
|
|
2907
2907
|
}
|
|
2908
2908
|
m.length > 0 && p.push(m);
|
|
2909
2909
|
function f(L) {
|
|
@@ -2919,13 +2919,13 @@ function Tp(e, t, r) {
|
|
|
2919
2919
|
let or = L[0][0].node;
|
|
2920
2920
|
return or.type === "ThisExpression" || or.type === "Identifier" && (f(or.name) || s && l(or.name) || W);
|
|
2921
2921
|
}
|
|
2922
|
-
let se = w(
|
|
2922
|
+
let se = w(false, L[0], -1).node;
|
|
2923
2923
|
return J(se) && se.property.type === "Identifier" && (f(se.property.name) || W);
|
|
2924
2924
|
}
|
|
2925
2925
|
let g = p.length >= 2 && !d(p[1][0].node) && h(p);
|
|
2926
2926
|
function S(L) {
|
|
2927
2927
|
let W = L.map(se => se.printed);
|
|
2928
|
-
return L.length > 0 && w(
|
|
2928
|
+
return L.length > 0 && w(false, L, -1).needsParens ? ["(", ...W, ")"] : W;
|
|
2929
2929
|
}
|
|
2930
2930
|
function I(L) {
|
|
2931
2931
|
return L.length === 0 ? "" : E(D([C, B(C, L.map(S))]));
|
|
@@ -2936,20 +2936,20 @@ function Tp(e, t, r) {
|
|
|
2936
2936
|
T = p.flat(),
|
|
2937
2937
|
N = T.slice(1, -1).some(L => d(L.node, x.Leading)) || T.slice(0, -1).some(L => d(L.node, x.Trailing)) || p[R] && d(p[R][0].node, x.Leading);
|
|
2938
2938
|
if (p.length <= R && !N) return Sr(e) ? _ : D(_);
|
|
2939
|
-
let Se = w(
|
|
2939
|
+
let Se = w(false, p[g ? 1 : 0], -1).node,
|
|
2940
2940
|
$ = !k(Se) && i(Se),
|
|
2941
2941
|
Be = [S(p[0]), g ? p.slice(1, 2).map(S) : "", $ ? C : "", I(p.slice(g ? 2 : 1))],
|
|
2942
2942
|
Ee = u.map(({
|
|
2943
2943
|
node: L
|
|
2944
2944
|
}) => L).filter(k);
|
|
2945
2945
|
function An() {
|
|
2946
|
-
let L = w(
|
|
2947
|
-
W = w(
|
|
2946
|
+
let L = w(false, w(false, p, -1), -1).node,
|
|
2947
|
+
W = w(false, v, -1);
|
|
2948
2948
|
return k(L) && K(W) && Ee.slice(0, -1).some(se => se.arguments.some(It));
|
|
2949
2949
|
}
|
|
2950
2950
|
let Tn;
|
|
2951
2951
|
return N || Ee.length > 2 && Ee.some(L => !L.arguments.every(W => xe(W))) || v.slice(0, -1).some(K) || An() ? Tn = D(Be) : Tn = [K(_) || $ ? Ae : "", qe([_, Be])], et({
|
|
2952
|
-
memberChain:
|
|
2952
|
+
memberChain: true
|
|
2953
2953
|
}, Tn);
|
|
2954
2954
|
}
|
|
2955
2955
|
var Lu = Tp;
|
|
@@ -2975,17 +2975,17 @@ function vr(e, t, r) {
|
|
|
2975
2975
|
return i || k(n.callee) ? D(m) : m;
|
|
2976
2976
|
}
|
|
2977
2977
|
function xp(e, t) {
|
|
2978
|
-
if (e.callee.type !== "Identifier") return
|
|
2979
|
-
if (e.callee.name === "require") return
|
|
2978
|
+
if (e.callee.type !== "Identifier") return false;
|
|
2979
|
+
if (e.callee.name === "require") return true;
|
|
2980
2980
|
if (e.callee.name === "define") {
|
|
2981
2981
|
let r = he(e);
|
|
2982
2982
|
return t.type === "ExpressionStatement" && (r.length === 1 || r.length === 2 && r[0].type === "ArrayExpression" || r.length === 3 && ee(r[0]) && r[1].type === "ArrayExpression");
|
|
2983
2983
|
}
|
|
2984
|
-
return
|
|
2984
|
+
return false;
|
|
2985
2985
|
}
|
|
2986
2986
|
function gp(e, t, r) {
|
|
2987
2987
|
let n = t === '"' ? "'" : '"',
|
|
2988
|
-
u = H(
|
|
2988
|
+
u = H(false, e, /\\(.)|(["'])/gs, (i, a, o) => a === n ? a : o === t ? "\\" + o : o || (r && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(a) ? a : "\\" + a));
|
|
2989
2989
|
return t + u + t;
|
|
2990
2990
|
}
|
|
2991
2991
|
var wu = gp;
|
|
@@ -3111,11 +3111,11 @@ function bp(e, t, r, n, s) {
|
|
|
3111
3111
|
}
|
|
3112
3112
|
function Pp(e, t, r, n) {
|
|
3113
3113
|
let s = e.node;
|
|
3114
|
-
if (ce(s) && !Ot(s)) return
|
|
3114
|
+
if (ce(s) && !Ot(s)) return true;
|
|
3115
3115
|
switch (s.type) {
|
|
3116
3116
|
case "StringLiteralTypeAnnotation":
|
|
3117
3117
|
case "SequenceExpression":
|
|
3118
|
-
return
|
|
3118
|
+
return true;
|
|
3119
3119
|
case "ConditionalExpression":
|
|
3120
3120
|
{
|
|
3121
3121
|
let {
|
|
@@ -3126,7 +3126,7 @@ function Pp(e, t, r, n) {
|
|
|
3126
3126
|
case "ClassExpression":
|
|
3127
3127
|
return P(s.decorators);
|
|
3128
3128
|
}
|
|
3129
|
-
if (n) return
|
|
3129
|
+
if (n) return false;
|
|
3130
3130
|
let u = s,
|
|
3131
3131
|
i = [];
|
|
3132
3132
|
for (;;) if (u.type === "UnaryExpression") u = u.argument, i.push("argument");else if (u.type === "TSNonNullExpression") u = u.expression, i.push("expression");else break;
|
|
@@ -3140,7 +3140,7 @@ function kp(e) {
|
|
|
3140
3140
|
return fe(r) && (!r.shorthand || ((n = r.value) == null ? void 0 : n.type) === "AssignmentPattern");
|
|
3141
3141
|
});
|
|
3142
3142
|
}
|
|
3143
|
-
return
|
|
3143
|
+
return false;
|
|
3144
3144
|
}
|
|
3145
3145
|
function Mr(e) {
|
|
3146
3146
|
return e.type === "AssignmentExpression";
|
|
@@ -3152,9 +3152,9 @@ function Ip(e) {
|
|
|
3152
3152
|
let t = wp(e);
|
|
3153
3153
|
if (P(t)) {
|
|
3154
3154
|
let r = e.type === "TSTypeAliasDeclaration" ? "constraint" : "bound";
|
|
3155
|
-
if (t.length > 1 && t.some(n => n[r] || n.default)) return
|
|
3155
|
+
if (t.length > 1 && t.some(n => n[r] || n.default)) return true;
|
|
3156
3156
|
}
|
|
3157
|
-
return
|
|
3157
|
+
return false;
|
|
3158
3158
|
}
|
|
3159
3159
|
var Lp = j(["TSTypeAliasDeclaration", "TypeAlias"]);
|
|
3160
3160
|
function wp(e) {
|
|
@@ -3162,11 +3162,11 @@ function wp(e) {
|
|
|
3162
3162
|
if (Lp(e)) return (t = e.typeParameters) == null ? void 0 : t.params;
|
|
3163
3163
|
}
|
|
3164
3164
|
function Op(e) {
|
|
3165
|
-
if (e.type !== "VariableDeclarator") return
|
|
3165
|
+
if (e.type !== "VariableDeclarator") return false;
|
|
3166
3166
|
let {
|
|
3167
3167
|
typeAnnotation: t
|
|
3168
3168
|
} = e.id;
|
|
3169
|
-
if (!t || !t.typeAnnotation) return
|
|
3169
|
+
if (!t || !t.typeAnnotation) return false;
|
|
3170
3170
|
let r = ju(t.typeAnnotation);
|
|
3171
3171
|
return P(r) && r.length > 1 && r.some(n => P(ju(n)) || n.type === "TSConditionalType");
|
|
3172
3172
|
}
|
|
@@ -3179,17 +3179,17 @@ function ju(e) {
|
|
|
3179
3179
|
var t;
|
|
3180
3180
|
if (vp(e)) return (t = e.typeParameters) == null ? void 0 : t.params;
|
|
3181
3181
|
}
|
|
3182
|
-
function Nu(e, t, r, n =
|
|
3182
|
+
function Nu(e, t, r, n = false) {
|
|
3183
3183
|
var i;
|
|
3184
3184
|
let {
|
|
3185
3185
|
node: s
|
|
3186
3186
|
} = e,
|
|
3187
|
-
u = () => Nu(e, t, r,
|
|
3187
|
+
u = () => Nu(e, t, r, true);
|
|
3188
3188
|
if (s.type === "ChainExpression" || s.type === "TSNonNullExpression") return e.call(u, "expression");
|
|
3189
3189
|
if (k(s)) {
|
|
3190
|
-
if ((i = vr(e, t, r).label) != null && i.memberChain) return
|
|
3190
|
+
if ((i = vr(e, t, r).label) != null && i.memberChain) return false;
|
|
3191
3191
|
let o = he(s);
|
|
3192
|
-
return !(o.length === 0 || o.length === 1 && jp(o[0], t)) || Rp(s, r) ?
|
|
3192
|
+
return !(o.length === 0 || o.length === 1 && jp(o[0], t)) || Rp(s, r) ? false : e.call(u, "callee");
|
|
3193
3193
|
}
|
|
3194
3194
|
return J(s) ? e.call(u, "object") : n && (s.type === "Identifier" || s.type === "ThisExpression");
|
|
3195
3195
|
}
|
|
@@ -3197,15 +3197,15 @@ var _p = .25;
|
|
|
3197
3197
|
function jp(e, {
|
|
3198
3198
|
printWidth: t
|
|
3199
3199
|
}) {
|
|
3200
|
-
if (d(e)) return
|
|
3200
|
+
if (d(e)) return false;
|
|
3201
3201
|
let r = t * _p;
|
|
3202
|
-
if (e.type === "ThisExpression" || e.type === "Identifier" && e.name.length <= r || Tr(e) && !d(e.argument)) return
|
|
3202
|
+
if (e.type === "ThisExpression" || e.type === "Identifier" && e.name.length <= r || Tr(e) && !d(e.argument)) return true;
|
|
3203
3203
|
let n = e.type === "Literal" && "regex" in e && e.regex.pattern || e.type === "RegExpLiteral" && e.pattern;
|
|
3204
3204
|
return n ? n.length <= r : ee(e) ? oe(e).length <= r : e.type === "TemplateLiteral" ? e.expressions.length === 0 && e.quasis[0].value.raw.length <= r && !e.quasis[0].value.raw.includes(`
|
|
3205
3205
|
`) : jr(e);
|
|
3206
3206
|
}
|
|
3207
3207
|
function Mp(e, t, r) {
|
|
3208
|
-
if (!fe(e)) return
|
|
3208
|
+
if (!fe(e)) return false;
|
|
3209
3209
|
t = Bt(t);
|
|
3210
3210
|
let n = 3;
|
|
3211
3211
|
return typeof t == "string" && tt(t) < r.tabWidth + n;
|
|
@@ -3213,15 +3213,15 @@ function Mp(e, t, r) {
|
|
|
3213
3213
|
function Rp(e, t) {
|
|
3214
3214
|
let r = Jp(e);
|
|
3215
3215
|
if (P(r)) {
|
|
3216
|
-
if (r.length > 1) return
|
|
3216
|
+
if (r.length > 1) return true;
|
|
3217
3217
|
if (r.length === 1) {
|
|
3218
3218
|
let s = r[0];
|
|
3219
|
-
if (s.type === "TSUnionType" || s.type === "UnionTypeAnnotation" || s.type === "TSIntersectionType" || s.type === "IntersectionTypeAnnotation" || s.type === "TSTypeLiteral" || s.type === "ObjectTypeAnnotation") return
|
|
3219
|
+
if (s.type === "TSUnionType" || s.type === "UnionTypeAnnotation" || s.type === "TSIntersectionType" || s.type === "IntersectionTypeAnnotation" || s.type === "TSTypeLiteral" || s.type === "ObjectTypeAnnotation") return true;
|
|
3220
3220
|
}
|
|
3221
3221
|
let n = e.typeParameters ? "typeParameters" : "typeArguments";
|
|
3222
|
-
if (K(t(n))) return
|
|
3222
|
+
if (K(t(n))) return true;
|
|
3223
3223
|
}
|
|
3224
|
-
return
|
|
3224
|
+
return false;
|
|
3225
3225
|
}
|
|
3226
3226
|
function Jp(e) {
|
|
3227
3227
|
var t;
|
|
@@ -3251,9 +3251,9 @@ function at(e, t, r, n, s) {
|
|
|
3251
3251
|
return m && c ? [a, "(", ...y, ")"] : p ? [a, "(", ...y, ")"] : (xr(o) || eu(o) || o.type === "TypeAlias" || o.type === "UnionTypeAnnotation" || o.type === "TSUnionType" || o.type === "IntersectionTypeAnnotation" || o.type === "FunctionTypeAnnotation" && o.returnType === u) && i.length === 1 && i[0].name === null && u.this !== i[0] && i[0].typeAnnotation && u.typeParameters === null && wt(i[0].typeAnnotation) && !u.rest ? r.arrowParens === "always" ? ["(", ...y, ")"] : y : [a, "(", E([F, ...y]), b(!uu(u) && le(r, "all") ? "," : ""), F, ")"];
|
|
3252
3252
|
}
|
|
3253
3253
|
function ss(e) {
|
|
3254
|
-
if (!e) return
|
|
3254
|
+
if (!e) return false;
|
|
3255
3255
|
let t = Y(e);
|
|
3256
|
-
if (t.length !== 1) return
|
|
3256
|
+
if (t.length !== 1) return false;
|
|
3257
3257
|
let [r] = t;
|
|
3258
3258
|
return !d(r) && (r.type === "ObjectPattern" || r.type === "ArrayPattern" || r.type === "Identifier" && r.typeAnnotation && (r.typeAnnotation.type === "TypeAnnotation" || r.typeAnnotation.type === "TSTypeAnnotation") && ke(r.typeAnnotation.typeAnnotation) || r.type === "FunctionTypeParam" && ke(r.typeAnnotation) && r !== e.rest || r.type === "AssignmentPattern" && (r.left.type === "ObjectPattern" || r.left.type === "ArrayPattern") && (r.right.type === "Identifier" || Z(r.right) && r.right.properties.length === 0 || G(r.right) && r.right.elements.length === 0));
|
|
3259
3259
|
}
|
|
@@ -3264,13 +3264,13 @@ function Np(e) {
|
|
|
3264
3264
|
function xt(e, t) {
|
|
3265
3265
|
var s;
|
|
3266
3266
|
let r = Np(e);
|
|
3267
|
-
if (!r) return
|
|
3267
|
+
if (!r) return false;
|
|
3268
3268
|
let n = (s = e.typeParameters) == null ? void 0 : s.params;
|
|
3269
3269
|
if (n) {
|
|
3270
|
-
if (n.length > 1) return
|
|
3270
|
+
if (n.length > 1) return false;
|
|
3271
3271
|
if (n.length === 1) {
|
|
3272
3272
|
let u = n[0];
|
|
3273
|
-
if (u.constraint || u.default) return
|
|
3273
|
+
if (u.constraint || u.default) return false;
|
|
3274
3274
|
}
|
|
3275
3275
|
}
|
|
3276
3276
|
return Y(e).length === 1 && (ke(r) || K(t));
|
|
@@ -3281,7 +3281,7 @@ function Up(e) {
|
|
|
3281
3281
|
let n = t.callee.callee;
|
|
3282
3282
|
return n.type === "Identifier" || n.type === "MemberExpression" && !n.computed && n.object.type === "Identifier" && n.property.type === "Identifier";
|
|
3283
3283
|
}
|
|
3284
|
-
return
|
|
3284
|
+
return false;
|
|
3285
3285
|
}, (t, r) => t.type === "VariableDeclarator" && r === "init" || t.type === "ExportDefaultDeclaration" && r === "declaration" || t.type === "TSExportAssignment" && r === "expression" || t.type === "AssignmentExpression" && r === "right" && t.left.type === "MemberExpression" && t.left.object.type === "Identifier" && t.left.object.name === "module" && t.left.property.type === "Identifier" && t.left.property.name === "exports", t => t.type !== "VariableDeclaration" || t.kind === "const" && t.declarations.length === 1);
|
|
3286
3286
|
}
|
|
3287
3287
|
function Uu(e) {
|
|
@@ -3289,14 +3289,14 @@ function Uu(e) {
|
|
|
3289
3289
|
return t.length > 1 && t.some(r => r.type === "TSParameterProperty");
|
|
3290
3290
|
}
|
|
3291
3291
|
function us(e) {
|
|
3292
|
-
if (wt(e) || ke(e)) return
|
|
3292
|
+
if (wt(e) || ke(e)) return true;
|
|
3293
3293
|
if (e.type === "UnionTypeAnnotation" || e.type === "TSUnionType") {
|
|
3294
3294
|
let t = e.types.filter(s => s.type === "VoidTypeAnnotation" || s.type === "TSVoidKeyword" || s.type === "NullLiteralTypeAnnotation" || s.type === "TSNullKeyword").length,
|
|
3295
3295
|
r = e.types.some(s => s.type === "ObjectTypeAnnotation" || s.type === "TSTypeLiteral" || s.type === "GenericTypeAnnotation" || s.type === "TSTypeReference"),
|
|
3296
3296
|
n = e.types.some(s => d(s));
|
|
3297
|
-
if (e.types.length - 1 === t && r && !n) return
|
|
3297
|
+
if (e.types.length - 1 === t && r && !n) return true;
|
|
3298
3298
|
}
|
|
3299
|
-
return
|
|
3299
|
+
return false;
|
|
3300
3300
|
}
|
|
3301
3301
|
function Gu(e, t, r) {
|
|
3302
3302
|
let n = t.semi ? ";" : "",
|
|
@@ -3317,7 +3317,7 @@ function Rr(e, t, r) {
|
|
|
3317
3317
|
return [ft(e, t, r, u, " =", i), n];
|
|
3318
3318
|
}
|
|
3319
3319
|
function Jr(e, t, r) {
|
|
3320
|
-
let n =
|
|
3320
|
+
let n = false;
|
|
3321
3321
|
return D(e.map(({
|
|
3322
3322
|
isFirst: s,
|
|
3323
3323
|
previous: u,
|
|
@@ -3328,7 +3328,7 @@ function Jr(e, t, r) {
|
|
|
3328
3328
|
if (s) return o;
|
|
3329
3329
|
let p = ke(i),
|
|
3330
3330
|
m = ke(u);
|
|
3331
|
-
return m && p ? [" & ", n ? E(o) : o] : !m && !p ? E([" &", A, o]) : (a > 1 && (n =
|
|
3331
|
+
return m && p ? [" & ", n ? E(o) : o] : !m && !p ? E([" &", A, o]) : (a > 1 && (n = true), [" & ", a > 1 ? E(o) : o]);
|
|
3332
3332
|
}, "types"));
|
|
3333
3333
|
}
|
|
3334
3334
|
function Nr(e, t, r) {
|
|
@@ -3363,7 +3363,7 @@ function Ur(e, t, r) {
|
|
|
3363
3363
|
} = e,
|
|
3364
3364
|
s = [_t(e)];
|
|
3365
3365
|
(n.type === "TSConstructorType" || n.type === "TSConstructSignatureDeclaration") && s.push("new ");
|
|
3366
|
-
let u = at(e, r, t,
|
|
3366
|
+
let u = at(e, r, t, false, true),
|
|
3367
3367
|
i = [];
|
|
3368
3368
|
return n.type === "FunctionTypeAnnotation" ? i.push(Gp(e) ? " => " : ": ", r("returnType")) : i.push(q(e, r, n.returnType ? "returnType" : "typeAnnotation")), xt(n, i) && (u = D(u)), s.push(u, i), D(s);
|
|
3369
3369
|
}
|
|
@@ -3399,10 +3399,10 @@ function q(e, t, r = "typeAnnotation") {
|
|
|
3399
3399
|
}
|
|
3400
3400
|
} = e;
|
|
3401
3401
|
if (!n) return "";
|
|
3402
|
-
let s =
|
|
3402
|
+
let s = false;
|
|
3403
3403
|
if (n.type === "TSTypeAnnotation" || n.type === "TypeAnnotation") {
|
|
3404
3404
|
let u = e.call(qu, r);
|
|
3405
|
-
(u === "=>" || u === ":" && d(n, x.Leading)) && (s =
|
|
3405
|
+
(u === "=>" || u === ":" && d(n, x.Leading)) && (s = true), qp.add(n);
|
|
3406
3406
|
}
|
|
3407
3407
|
return s ? [" ", t(r)] : t(r);
|
|
3408
3408
|
}
|
|
@@ -3489,7 +3489,7 @@ function Xu(e, t) {
|
|
|
3489
3489
|
}
|
|
3490
3490
|
function $u(e) {
|
|
3491
3491
|
var r;
|
|
3492
|
-
if (e.type !== "ExportDefaultDeclaration" && e.type !== "ExportNamedDeclaration" && e.type !== "DeclareExportDeclaration") return
|
|
3492
|
+
if (e.type !== "ExportDefaultDeclaration" && e.type !== "ExportNamedDeclaration" && e.type !== "DeclareExportDeclaration") return false;
|
|
3493
3493
|
let t = (r = e.declaration) == null ? void 0 : r.decorators;
|
|
3494
3494
|
return P(t) && mt(e, t[0]);
|
|
3495
3495
|
}
|
|
@@ -3515,7 +3515,7 @@ var Xp = j(["ClassDeclaration", "FunctionDeclaration", "TSInterfaceDeclaration",
|
|
|
3515
3515
|
function $p(e, t) {
|
|
3516
3516
|
return t.semi && (!e.declaration || Hu(e) && !Xp(e.declaration)) ? ";" : "";
|
|
3517
3517
|
}
|
|
3518
|
-
function os(e, t =
|
|
3518
|
+
function os(e, t = true) {
|
|
3519
3519
|
return e && e !== "value" ? `${t ? " " : ""}${e}${t ? "" : " "}` : "";
|
|
3520
3520
|
}
|
|
3521
3521
|
function ps(e, t) {
|
|
@@ -3555,7 +3555,7 @@ function Qu(e, t) {
|
|
|
3555
3555
|
source: s,
|
|
3556
3556
|
specifiers: u
|
|
3557
3557
|
} = e;
|
|
3558
|
-
return r !== "ImportDeclaration" || P(u) || n === "type" ?
|
|
3558
|
+
return r !== "ImportDeclaration" || P(u) || n === "type" ? false : !/{\s*}/.test(t.originalText.slice(U(e), U(s)));
|
|
3559
3559
|
}
|
|
3560
3560
|
function Zu(e, t, r) {
|
|
3561
3561
|
var i;
|
|
@@ -3579,21 +3579,21 @@ function ei(e, t, r) {
|
|
|
3579
3579
|
p = n[a],
|
|
3580
3580
|
m = "",
|
|
3581
3581
|
y = "";
|
|
3582
|
-
return s === "ExportNamespaceSpecifier" || s === "ImportNamespaceSpecifier" ? m = "*" : o && (m = r(i)), p && !Hp(n) && (y = r(a)), [os(s === "ImportSpecifier" ? n.importKind : n.exportKind,
|
|
3582
|
+
return s === "ExportNamespaceSpecifier" || s === "ImportNamespaceSpecifier" ? m = "*" : o && (m = r(i)), p && !Hp(n) && (y = r(a)), [os(s === "ImportSpecifier" ? n.importKind : n.exportKind, false), m, m && y ? " as " : "", y];
|
|
3583
3583
|
}
|
|
3584
3584
|
function Hp(e) {
|
|
3585
|
-
if (e.type !== "ImportSpecifier" && e.type !== "ExportSpecifier") return
|
|
3585
|
+
if (e.type !== "ImportSpecifier" && e.type !== "ExportSpecifier") return false;
|
|
3586
3586
|
let {
|
|
3587
3587
|
local: t,
|
|
3588
3588
|
[e.type === "ImportSpecifier" ? "imported" : "exported"]: r
|
|
3589
3589
|
} = e;
|
|
3590
|
-
if (t.type !== r.type || !$s(t, r)) return
|
|
3590
|
+
if (t.type !== r.type || !$s(t, r)) return false;
|
|
3591
3591
|
if (ee(t)) return t.value === r.value && oe(t) === oe(r);
|
|
3592
3592
|
switch (t.type) {
|
|
3593
3593
|
case "Identifier":
|
|
3594
3594
|
return t.name === r.name;
|
|
3595
3595
|
default:
|
|
3596
|
-
return
|
|
3596
|
+
return false;
|
|
3597
3597
|
}
|
|
3598
3598
|
}
|
|
3599
3599
|
function Kp(e) {
|
|
@@ -3602,11 +3602,11 @@ function Kp(e) {
|
|
|
3602
3602
|
let n = t[r];
|
|
3603
3603
|
for (let s of ["test", "consequent", "alternate"]) {
|
|
3604
3604
|
let u = n[s];
|
|
3605
|
-
if (V(u)) return
|
|
3605
|
+
if (V(u)) return true;
|
|
3606
3606
|
u.type === "ConditionalExpression" && t.push(u);
|
|
3607
3607
|
}
|
|
3608
3608
|
}
|
|
3609
|
-
return
|
|
3609
|
+
return false;
|
|
3610
3610
|
}
|
|
3611
3611
|
function zp(e, t, r) {
|
|
3612
3612
|
let {
|
|
@@ -3625,7 +3625,7 @@ function Zp(e) {
|
|
|
3625
3625
|
let {
|
|
3626
3626
|
node: t
|
|
3627
3627
|
} = e;
|
|
3628
|
-
if (t.type !== "ConditionalExpression") return
|
|
3628
|
+
if (t.type !== "ConditionalExpression") return false;
|
|
3629
3629
|
let r,
|
|
3630
3630
|
n = t;
|
|
3631
3631
|
for (let s = 0; !r; s++) {
|
|
@@ -3636,7 +3636,7 @@ function Zp(e) {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
u.type === "NewExpression" && u.callee === n || Le(u) && u.expression === n ? (r = e.getParentNode(s + 1), n = u) : r = u;
|
|
3638
3638
|
}
|
|
3639
|
-
return n === t ?
|
|
3639
|
+
return n === t ? false : r[Qp.get(r.type)] === n;
|
|
3640
3640
|
}
|
|
3641
3641
|
function Mt(e, t, r) {
|
|
3642
3642
|
let {
|
|
@@ -3649,7 +3649,7 @@ function Mt(e, t, r) {
|
|
|
3649
3649
|
o = n[u],
|
|
3650
3650
|
p = n[i],
|
|
3651
3651
|
m = [],
|
|
3652
|
-
y =
|
|
3652
|
+
y = false,
|
|
3653
3653
|
{
|
|
3654
3654
|
parent: c
|
|
3655
3655
|
} = e,
|
|
@@ -3662,7 +3662,7 @@ function Mt(e, t, r) {
|
|
|
3662
3662
|
let I = h || c,
|
|
3663
3663
|
v = g;
|
|
3664
3664
|
if (s && (V(n[a[0]]) || V(o) || V(p) || Kp(v))) {
|
|
3665
|
-
y =
|
|
3665
|
+
y = true, l = true;
|
|
3666
3666
|
let $ = Ee => [b("("), E([F, Ee]), F, b(")")],
|
|
3667
3667
|
Be = Ee => Ee.type === "NullLiteral" || Ee.type === "Literal" && Ee.value === null || Ee.type === "Identifier" && Ee.name === "undefined";
|
|
3668
3668
|
m.push(" ? ", Be(o) ? r(u) : $(r(u)), " : ", p.type === n.type || Be(p) ? r(i) : $(r(i)));
|
|
@@ -3795,13 +3795,13 @@ function ls(e) {
|
|
|
3795
3795
|
return t;
|
|
3796
3796
|
}
|
|
3797
3797
|
function Zr(e, t, r, n, s, u) {
|
|
3798
|
-
if (r === Number.POSITIVE_INFINITY) return
|
|
3798
|
+
if (r === Number.POSITIVE_INFINITY) return true;
|
|
3799
3799
|
let i = t.length,
|
|
3800
3800
|
a = [e],
|
|
3801
3801
|
o = [];
|
|
3802
3802
|
for (; r >= 0;) {
|
|
3803
3803
|
if (a.length === 0) {
|
|
3804
|
-
if (i === 0) return
|
|
3804
|
+
if (i === 0) return true;
|
|
3805
3805
|
a.push(t[--i]);
|
|
3806
3806
|
continue;
|
|
3807
3807
|
}
|
|
@@ -3837,9 +3837,9 @@ function Zr(e, t, r, n, s, u) {
|
|
|
3837
3837
|
break;
|
|
3838
3838
|
case ue:
|
|
3839
3839
|
{
|
|
3840
|
-
if (u && m.break) return
|
|
3840
|
+
if (u && m.break) return false;
|
|
3841
3841
|
let y = m.break ? Ce : p,
|
|
3842
|
-
c = m.expandedStates && y === Ce ? w(
|
|
3842
|
+
c = m.expandedStates && y === Ce ? w(false, m.expandedStates, -1) : m.contents;
|
|
3843
3843
|
a.push({
|
|
3844
3844
|
mode: y,
|
|
3845
3845
|
doc: c
|
|
@@ -3856,18 +3856,18 @@ function Zr(e, t, r, n, s, u) {
|
|
|
3856
3856
|
break;
|
|
3857
3857
|
}
|
|
3858
3858
|
case ie:
|
|
3859
|
-
if (p === Ce || m.hard) return
|
|
3859
|
+
if (p === Ce || m.hard) return true;
|
|
3860
3860
|
m.soft || (o.push(" "), r--);
|
|
3861
3861
|
break;
|
|
3862
3862
|
case Ne:
|
|
3863
|
-
n =
|
|
3863
|
+
n = true;
|
|
3864
3864
|
break;
|
|
3865
3865
|
case Ue:
|
|
3866
|
-
if (n) return
|
|
3866
|
+
if (n) return false;
|
|
3867
3867
|
break;
|
|
3868
3868
|
}
|
|
3869
3869
|
}
|
|
3870
|
-
return
|
|
3870
|
+
return false;
|
|
3871
3871
|
}
|
|
3872
3872
|
function ms(e, t) {
|
|
3873
3873
|
let r = {},
|
|
@@ -3880,7 +3880,7 @@ function ms(e, t) {
|
|
|
3880
3880
|
doc: e
|
|
3881
3881
|
}],
|
|
3882
3882
|
a = [],
|
|
3883
|
-
o =
|
|
3883
|
+
o = false,
|
|
3884
3884
|
p = [],
|
|
3885
3885
|
m = 0;
|
|
3886
3886
|
for (Rs(e); i.length > 0;) {
|
|
@@ -3893,7 +3893,7 @@ function ms(e, t) {
|
|
|
3893
3893
|
case Ke:
|
|
3894
3894
|
{
|
|
3895
3895
|
let h = s !== `
|
|
3896
|
-
` ? H(
|
|
3896
|
+
` ? H(false, l, `
|
|
3897
3897
|
`, s) : l;
|
|
3898
3898
|
a.push(h), i.length > 0 && (u += tt(h));
|
|
3899
3899
|
break;
|
|
@@ -3939,7 +3939,7 @@ function ms(e, t) {
|
|
|
3939
3939
|
}
|
|
3940
3940
|
case Ce:
|
|
3941
3941
|
{
|
|
3942
|
-
o =
|
|
3942
|
+
o = false;
|
|
3943
3943
|
let h = {
|
|
3944
3944
|
ind: c,
|
|
3945
3945
|
mode: rt,
|
|
@@ -3948,7 +3948,7 @@ function ms(e, t) {
|
|
|
3948
3948
|
g = n - u,
|
|
3949
3949
|
S = p.length > 0;
|
|
3950
3950
|
if (!l.break && Zr(h, i, g, S, r)) i.push(h);else if (l.expandedStates) {
|
|
3951
|
-
let I = w(
|
|
3951
|
+
let I = w(false, l.expandedStates, -1);
|
|
3952
3952
|
if (l.break) {
|
|
3953
3953
|
i.push({
|
|
3954
3954
|
ind: c,
|
|
@@ -3983,7 +3983,7 @@ function ms(e, t) {
|
|
|
3983
3983
|
break;
|
|
3984
3984
|
}
|
|
3985
3985
|
}
|
|
3986
|
-
l.id && (r[l.id] = w(
|
|
3986
|
+
l.id && (r[l.id] = w(false, i, -1).mode);
|
|
3987
3987
|
break;
|
|
3988
3988
|
case De:
|
|
3989
3989
|
{
|
|
@@ -4003,7 +4003,7 @@ function ms(e, t) {
|
|
|
4003
4003
|
mode: Ce,
|
|
4004
4004
|
doc: S
|
|
4005
4005
|
},
|
|
4006
|
-
R = Zr(v, [], h, p.length > 0, r,
|
|
4006
|
+
R = Zr(v, [], h, p.length > 0, r, true);
|
|
4007
4007
|
if (g.length === 1) {
|
|
4008
4008
|
R ? i.push(v) : i.push(_);
|
|
4009
4009
|
break;
|
|
@@ -4033,7 +4033,7 @@ function ms(e, t) {
|
|
|
4033
4033
|
ind: c,
|
|
4034
4034
|
mode: rt,
|
|
4035
4035
|
doc: [S, I, $]
|
|
4036
|
-
}, [], h, p.length > 0, r,
|
|
4036
|
+
}, [], h, p.length > 0, r, true) ? i.push(Se, T, v) : R ? i.push(Se, N, v) : i.push(Se, N, _);
|
|
4037
4037
|
break;
|
|
4038
4038
|
}
|
|
4039
4039
|
case Fe:
|
|
@@ -4075,7 +4075,7 @@ function ms(e, t) {
|
|
|
4075
4075
|
case ie:
|
|
4076
4076
|
switch (f) {
|
|
4077
4077
|
case rt:
|
|
4078
|
-
if (l.hard) o =
|
|
4078
|
+
if (l.hard) o = true;else {
|
|
4079
4079
|
l.soft || (a.push(" "), u += 1);
|
|
4080
4080
|
break;
|
|
4081
4081
|
}
|
|
@@ -4165,7 +4165,7 @@ function en(e, t, r) {
|
|
|
4165
4165
|
function ui(e) {
|
|
4166
4166
|
let t = e("quasi");
|
|
4167
4167
|
return et(t.label && {
|
|
4168
|
-
tagged:
|
|
4168
|
+
tagged: true,
|
|
4169
4169
|
...t.label
|
|
4170
4170
|
}, [e("tag"), e("typeParameters"), de, t]);
|
|
4171
4171
|
}
|
|
@@ -4175,9 +4175,9 @@ function sc(e, t, r) {
|
|
|
4175
4175
|
} = e,
|
|
4176
4176
|
s = n.quasis[0].value.raw.trim().split(/\s*\|\s*/);
|
|
4177
4177
|
if (s.length > 1 || s.some(u => u.length > 0)) {
|
|
4178
|
-
t.__inJestEach =
|
|
4178
|
+
t.__inJestEach = true;
|
|
4179
4179
|
let u = e.map(r, "expressions");
|
|
4180
|
-
t.__inJestEach =
|
|
4180
|
+
t.__inJestEach = false;
|
|
4181
4181
|
let i = [],
|
|
4182
4182
|
a = u.map(c => "${" + ms(c, {
|
|
4183
4183
|
...t,
|
|
@@ -4185,16 +4185,16 @@ function sc(e, t, r) {
|
|
|
4185
4185
|
endOfLine: "lf"
|
|
4186
4186
|
}).formatted + "}"),
|
|
4187
4187
|
o = [{
|
|
4188
|
-
hasLineBreak:
|
|
4188
|
+
hasLineBreak: false,
|
|
4189
4189
|
cells: []
|
|
4190
4190
|
}];
|
|
4191
4191
|
for (let c = 1; c < n.quasis.length; c++) {
|
|
4192
|
-
let f = w(
|
|
4192
|
+
let f = w(false, o, -1),
|
|
4193
4193
|
l = a[c - 1];
|
|
4194
4194
|
f.cells.push(l), l.includes(`
|
|
4195
|
-
`) && (f.hasLineBreak =
|
|
4195
|
+
`) && (f.hasLineBreak = true), n.quasis[c].value.raw.includes(`
|
|
4196
4196
|
`) && o.push({
|
|
4197
|
-
hasLineBreak:
|
|
4197
|
+
hasLineBreak: false,
|
|
4198
4198
|
cells: []
|
|
4199
4199
|
});
|
|
4200
4200
|
}
|
|
@@ -4222,10 +4222,10 @@ function Rt(e, t) {
|
|
|
4222
4222
|
return e.map(r => uc(r, t), "expressions");
|
|
4223
4223
|
}
|
|
4224
4224
|
function tn(e, t) {
|
|
4225
|
-
return st(e, r => typeof r == "string" ? t ? H(
|
|
4225
|
+
return st(e, r => typeof r == "string" ? t ? H(false, r, /(\\*)`/g, "$1$1\\`") : Ds(r) : r);
|
|
4226
4226
|
}
|
|
4227
4227
|
function Ds(e) {
|
|
4228
|
-
return H(
|
|
4228
|
+
return H(false, e, /([\\`]|\${)/g, "\\$1");
|
|
4229
4229
|
}
|
|
4230
4230
|
function ic({
|
|
4231
4231
|
node: e,
|
|
@@ -4361,12 +4361,12 @@ function an(e, t, r, n) {
|
|
|
4361
4361
|
let {
|
|
4362
4362
|
node: s
|
|
4363
4363
|
} = e,
|
|
4364
|
-
u =
|
|
4364
|
+
u = false;
|
|
4365
4365
|
if ((s.type === "FunctionDeclaration" || s.type === "FunctionExpression") && n != null && n.expandLastArg) {
|
|
4366
4366
|
let {
|
|
4367
4367
|
parent: m
|
|
4368
4368
|
} = e;
|
|
4369
|
-
k(m) && (he(m).length > 1 || Y(s).every(y => y.type === "Identifier" && !y.typeAnnotation)) && (u =
|
|
4369
|
+
k(m) && (he(m).length > 1 || Y(s).every(y => y.type === "Identifier" && !y.typeAnnotation)) && (u = true);
|
|
4370
4370
|
}
|
|
4371
4371
|
let i = [Q(e), s.async ? "async " : "", `function${s.generator ? "*" : ""} `, s.id ? t("id") : ""],
|
|
4372
4372
|
a = at(e, t, r, u),
|
|
@@ -4394,7 +4394,7 @@ function on(e, t, r) {
|
|
|
4394
4394
|
i = Uu(n),
|
|
4395
4395
|
a = xt(n, u),
|
|
4396
4396
|
o = [Ve(e, t, r), D([i ? D(s, {
|
|
4397
|
-
shouldBreak:
|
|
4397
|
+
shouldBreak: true
|
|
4398
4398
|
}) : a ? D(s) : s, u])];
|
|
4399
4399
|
return n.body ? o.push(" ", r("body")) : o.push(t.semi ? ";" : ""), o;
|
|
4400
4400
|
}
|
|
@@ -4403,14 +4403,14 @@ function Dc(e) {
|
|
|
4403
4403
|
return t.length === 1 && !e.typeParameters && !d(e, x.Dangling) && t[0].type === "Identifier" && !t[0].typeAnnotation && !d(t[0]) && !t[0].optional && !e.predicate && !e.returnType;
|
|
4404
4404
|
}
|
|
4405
4405
|
function pn(e, t) {
|
|
4406
|
-
if (t.arrowParens === "always") return
|
|
4406
|
+
if (t.arrowParens === "always") return false;
|
|
4407
4407
|
if (t.arrowParens === "avoid") {
|
|
4408
4408
|
let {
|
|
4409
4409
|
node: r
|
|
4410
4410
|
} = e;
|
|
4411
4411
|
return Dc(r);
|
|
4412
4412
|
}
|
|
4413
|
-
return
|
|
4413
|
+
return false;
|
|
4414
4414
|
}
|
|
4415
4415
|
function cn(e, t) {
|
|
4416
4416
|
let {
|
|
@@ -4440,13 +4440,13 @@ function li(e, t, r) {
|
|
|
4440
4440
|
return ["throw", pi(e, t, r)];
|
|
4441
4441
|
}
|
|
4442
4442
|
function yc(e, t) {
|
|
4443
|
-
if (Ie(e.originalText, t)) return
|
|
4443
|
+
if (Ie(e.originalText, t)) return true;
|
|
4444
4444
|
if (Lt(t)) {
|
|
4445
4445
|
let r = t,
|
|
4446
4446
|
n;
|
|
4447
|
-
for (; n = Qs(r);) if (r = n, Ie(e.originalText, r)) return
|
|
4447
|
+
for (; n = Qs(r);) if (r = n, Ie(e.originalText, r)) return true;
|
|
4448
4448
|
}
|
|
4449
|
-
return
|
|
4449
|
+
return false;
|
|
4450
4450
|
}
|
|
4451
4451
|
var mi = j(["ClassProperty", "PropertyDefinition", "ClassPrivateProperty", "ClassAccessorProperty", "AccessorProperty", "TSAbstractPropertyDefinition", "TSAbstractAccessorProperty"]);
|
|
4452
4452
|
function ln(e, t, r) {
|
|
@@ -4537,13 +4537,13 @@ function Fc(e, t) {
|
|
|
4537
4537
|
type: r,
|
|
4538
4538
|
name: n
|
|
4539
4539
|
} = e.key;
|
|
4540
|
-
if (!e.computed && r === "Identifier" && (n === "static" || n === "get" || n === "set") && !e.value && !e.typeAnnotation) return
|
|
4541
|
-
if (!t || t.static || t.accessibility) return
|
|
4540
|
+
if (!e.computed && r === "Identifier" && (n === "static" || n === "get" || n === "set") && !e.value && !e.typeAnnotation) return true;
|
|
4541
|
+
if (!t || t.static || t.accessibility) return false;
|
|
4542
4542
|
if (!t.computed) {
|
|
4543
4543
|
let u = (s = t.key) == null ? void 0 : s.name;
|
|
4544
|
-
if (u === "in" || u === "instanceof") return
|
|
4544
|
+
if (u === "in" || u === "instanceof") return true;
|
|
4545
4545
|
}
|
|
4546
|
-
if (mi(t) && t.variance && !t.static && !t.declare) return
|
|
4546
|
+
if (mi(t) && t.variance && !t.static && !t.declare) return true;
|
|
4547
4547
|
switch (t.type) {
|
|
4548
4548
|
case "ClassProperty":
|
|
4549
4549
|
case "PropertyDefinition":
|
|
@@ -4554,14 +4554,14 @@ function Fc(e, t) {
|
|
|
4554
4554
|
case "ClassMethod":
|
|
4555
4555
|
case "ClassPrivateMethod":
|
|
4556
4556
|
{
|
|
4557
|
-
if ((t.value ? t.value.async : t.async) || t.kind === "get" || t.kind === "set") return
|
|
4557
|
+
if ((t.value ? t.value.async : t.async) || t.kind === "get" || t.kind === "set") return false;
|
|
4558
4558
|
let i = t.value ? t.value.generator : t.generator;
|
|
4559
4559
|
return !!(t.computed || i);
|
|
4560
4560
|
}
|
|
4561
4561
|
case "TSIndexSignature":
|
|
4562
|
-
return
|
|
4562
|
+
return true;
|
|
4563
4563
|
}
|
|
4564
|
-
return
|
|
4564
|
+
return false;
|
|
4565
4565
|
}
|
|
4566
4566
|
function Et(e, t, r) {
|
|
4567
4567
|
var R;
|
|
@@ -4599,17 +4599,17 @@ function Et(e, t, r) {
|
|
|
4599
4599
|
let T;
|
|
4600
4600
|
if (d(s, x.Dangling)) {
|
|
4601
4601
|
let N = d(s, x.Line);
|
|
4602
|
-
T = [M(e, t), N || z(t.originalText, O(w(
|
|
4602
|
+
T = [M(e, t), N || z(t.originalText, O(w(false, Kt(s), -1))) ? C : A, "..."];
|
|
4603
4603
|
} else T = ["..."];
|
|
4604
4604
|
S.push([...g, ...T]);
|
|
4605
4605
|
}
|
|
4606
|
-
let I = (R = w(
|
|
4606
|
+
let I = (R = w(false, o, -1)) == null ? void 0 : R.node,
|
|
4607
4607
|
v = !(s.inexact || s.hasUnknownMembers || I && (I.type === "RestElement" || (I.type === "TSPropertySignature" || I.type === "TSCallSignatureDeclaration" || I.type === "TSMethodSignature" || I.type === "TSConstructSignatureDeclaration") && d(I, x.PrettierIgnore))),
|
|
4608
4608
|
_;
|
|
4609
4609
|
if (S.length === 0) {
|
|
4610
4610
|
if (!d(s, x.Dangling)) return [l, h, q(e, r)];
|
|
4611
4611
|
_ = D([l, M(e, t, {
|
|
4612
|
-
indent:
|
|
4612
|
+
indent: true
|
|
4613
4613
|
}), F, h, X(e), q(e, r)]);
|
|
4614
4614
|
} else _ = [y && P(s.properties) ? Es(p) : "", l, E([t.bracketSpacing ? A : F, ...S]), b(v && (f !== "," || le(t)) ? f : ""), t.bracketSpacing ? A : F, h, X(e), q(e, r)];
|
|
4615
4615
|
return e.match(T => T.type === "ObjectPattern" && !T.decorators, Fs) || ke(s) && (e.match(void 0, (T, N) => N === "typeAnnotation", (T, N) => N === "typeAnnotation", Fs) || e.match(void 0, (T, N) => T.type === "FunctionTypeParam" && N === "typeAnnotation", Fs)) || !c && e.match(T => T.type === "ObjectPattern", T => T.type === "AssignmentExpression" || T.type === "VariableDeclarator") ? _ : D(_, {
|
|
@@ -4628,7 +4628,7 @@ function Ci(e, t, r, n = {}) {
|
|
|
4628
4628
|
let s = [],
|
|
4629
4629
|
u,
|
|
4630
4630
|
i = [],
|
|
4631
|
-
a =
|
|
4631
|
+
a = false,
|
|
4632
4632
|
o = !n.expandLastArg && e.node.body.type === "ArrowFunctionExpression",
|
|
4633
4633
|
p;
|
|
4634
4634
|
(function g() {
|
|
@@ -4653,8 +4653,8 @@ function Ci(e, t, r, n = {}) {
|
|
|
4653
4653
|
shouldBreak: a
|
|
4654
4654
|
}),
|
|
4655
4655
|
l,
|
|
4656
|
-
h =
|
|
4657
|
-
return o && (y || n.assignmentLayout) && (h =
|
|
4656
|
+
h = false;
|
|
4657
|
+
return o && (y || n.assignmentLayout) && (h = true, l = n.assignmentLayout === "chain-tail-arrow-chain" || y && !m), u = Tc(e, t, n, {
|
|
4658
4658
|
bodyDoc: u,
|
|
4659
4659
|
bodyComments: i,
|
|
4660
4660
|
functionBody: p,
|
|
@@ -4680,19 +4680,19 @@ function Cc(e, t, r, n) {
|
|
|
4680
4680
|
if (K(o)) throw new it();
|
|
4681
4681
|
o = D(Ut(o));
|
|
4682
4682
|
}
|
|
4683
|
-
u.push(D([at(e, r, t, a,
|
|
4683
|
+
u.push(D([at(e, r, t, a, true), o]));
|
|
4684
4684
|
}
|
|
4685
4685
|
let i = M(e, t, {
|
|
4686
4686
|
filter(a) {
|
|
4687
4687
|
let o = Xe(t.originalText, O(a));
|
|
4688
|
-
return o !==
|
|
4688
|
+
return o !== false && t.originalText.slice(o, o + 2) === "=>";
|
|
4689
4689
|
}
|
|
4690
4690
|
});
|
|
4691
4691
|
return i && u.push(" ", i), u;
|
|
4692
4692
|
}
|
|
4693
4693
|
function dc(e, t, r) {
|
|
4694
4694
|
var n, s;
|
|
4695
|
-
return G(e) || Z(e) || e.type === "ArrowFunctionExpression" || e.type === "DoExpression" || e.type === "BlockStatement" || V(e) || ((n = t.label) == null ? void 0 : n.hug) !==
|
|
4695
|
+
return G(e) || Z(e) || e.type === "ArrowFunctionExpression" || e.type === "DoExpression" || e.type === "BlockStatement" || V(e) || ((n = t.label) == null ? void 0 : n.hug) !== false && (((s = t.label) == null ? void 0 : s.embed) || gr(e, r.originalText));
|
|
4696
4696
|
}
|
|
4697
4697
|
function Ac(e, t, {
|
|
4698
4698
|
signatureDocs: r,
|
|
@@ -4769,10 +4769,10 @@ function ds(e, t, r) {
|
|
|
4769
4769
|
i = d(n, x.Dangling);
|
|
4770
4770
|
if (!s && !u && !i) return "";
|
|
4771
4771
|
let a = [];
|
|
4772
|
-
return s && (a.push(ir(e, t, r, "directives")), (u || i) && (a.push(C), me(w(
|
|
4772
|
+
return s && (a.push(ir(e, t, r, "directives")), (u || i) && (a.push(C), me(w(false, n.directives, -1), t) && a.push(C))), u && a.push(ir(e, t, r, "body")), i && a.push(M(e, t)), n.type === "Program" && ((o = e.parent) == null ? void 0 : o.type) !== "ModuleExpression" && a.push(C), a;
|
|
4773
4773
|
}
|
|
4774
4774
|
function di(e, t) {
|
|
4775
|
-
if (t.semi || As(e, t) || xs(e, t)) return
|
|
4775
|
+
if (t.semi || As(e, t) || xs(e, t)) return false;
|
|
4776
4776
|
let {
|
|
4777
4777
|
node: r,
|
|
4778
4778
|
key: n,
|
|
@@ -4792,9 +4792,9 @@ function Ai(e, t) {
|
|
|
4792
4792
|
case "TemplateLiteral":
|
|
4793
4793
|
case "TemplateElement":
|
|
4794
4794
|
case "RegExpLiteral":
|
|
4795
|
-
return
|
|
4795
|
+
return true;
|
|
4796
4796
|
case "ArrowFunctionExpression":
|
|
4797
|
-
if (!pn(e, t)) return
|
|
4797
|
+
if (!pn(e, t)) return true;
|
|
4798
4798
|
break;
|
|
4799
4799
|
case "UnaryExpression":
|
|
4800
4800
|
{
|
|
@@ -4802,19 +4802,19 @@ function Ai(e, t) {
|
|
|
4802
4802
|
prefix: n,
|
|
4803
4803
|
operator: s
|
|
4804
4804
|
} = r;
|
|
4805
|
-
if (n && (s === "+" || s === "-")) return
|
|
4805
|
+
if (n && (s === "+" || s === "-")) return true;
|
|
4806
4806
|
break;
|
|
4807
4807
|
}
|
|
4808
4808
|
case "BindExpression":
|
|
4809
|
-
if (!r.object) return
|
|
4809
|
+
if (!r.object) return true;
|
|
4810
4810
|
break;
|
|
4811
4811
|
case "Literal":
|
|
4812
|
-
if (r.regex) return
|
|
4812
|
+
if (r.regex) return true;
|
|
4813
4813
|
break;
|
|
4814
4814
|
default:
|
|
4815
|
-
if (V(r)) return
|
|
4815
|
+
if (V(r)) return true;
|
|
4816
4816
|
}
|
|
4817
|
-
return we(e, t) ?
|
|
4817
|
+
return we(e, t) ? true : Lt(r) ? e.call(() => Ai(e, t), ...Ar(r)) : false;
|
|
4818
4818
|
}
|
|
4819
4819
|
function As({
|
|
4820
4820
|
node: e,
|
|
@@ -4831,11 +4831,11 @@ function Ts(e) {
|
|
|
4831
4831
|
case "StringLiteral":
|
|
4832
4832
|
return Ts(e.object);
|
|
4833
4833
|
}
|
|
4834
|
-
return
|
|
4834
|
+
return false;
|
|
4835
4835
|
case "Identifier":
|
|
4836
|
-
return
|
|
4836
|
+
return true;
|
|
4837
4837
|
default:
|
|
4838
|
-
return
|
|
4838
|
+
return false;
|
|
4839
4839
|
}
|
|
4840
4840
|
}
|
|
4841
4841
|
function xs({
|
|
@@ -5054,7 +5054,7 @@ function gi(e, t, r, n) {
|
|
|
5054
5054
|
case "CatchClause":
|
|
5055
5055
|
if (s.param) {
|
|
5056
5056
|
let a = d(s.param, p => !ae(p) || p.leading && z(t.originalText, O(p)) || p.trailing && z(t.originalText, U(p), {
|
|
5057
|
-
backwards:
|
|
5057
|
+
backwards: true
|
|
5058
5058
|
})),
|
|
5059
5059
|
o = r("param");
|
|
5060
5060
|
return ["catch ", a ? ["(", E([F, o]), F, ") "] : ["(", o, ") "], r("body")];
|
|
@@ -5369,7 +5369,7 @@ function ki(e, t, r) {
|
|
|
5369
5369
|
o = D(["<", E([F, r("typeAnnotation")]), F, ">"]),
|
|
5370
5370
|
p = [b("("), E([F, r("expression")]), F, b(")")];
|
|
5371
5371
|
return a ? qe([[o, r("expression")], [o, D(p, {
|
|
5372
|
-
shouldBreak:
|
|
5372
|
+
shouldBreak: true
|
|
5373
5373
|
})], [o, r("expression")]]) : D([o, r("expression")]);
|
|
5374
5374
|
}
|
|
5375
5375
|
case "TSDeclareFunction":
|
|
@@ -5454,7 +5454,7 @@ function ki(e, t, r) {
|
|
|
5454
5454
|
{
|
|
5455
5455
|
let a = n.kind && n.kind !== "method" ? `${n.kind} ` : "";
|
|
5456
5456
|
u.push(jt(n), a, n.computed ? "[" : "", r("key"), n.computed ? "]" : "", X(e));
|
|
5457
|
-
let o = at(e, r, t,
|
|
5457
|
+
let o = at(e, r, t, false, true),
|
|
5458
5458
|
p = n.returnType ? "returnType" : "typeAnnotation",
|
|
5459
5459
|
m = n[p],
|
|
5460
5460
|
y = m ? q(e, r, p) : "",
|
|
@@ -5468,7 +5468,7 @@ function ki(e, t, r) {
|
|
|
5468
5468
|
case "TSEnumMember":
|
|
5469
5469
|
return En(e, r);
|
|
5470
5470
|
case "TSImportEqualsDeclaration":
|
|
5471
|
-
return [n.isExport ? "export " : "", "import ", ps(n,
|
|
5471
|
+
return [n.isExport ? "export " : "", "import ", ps(n, false), r("id"), " = ", r("moduleReference"), t.semi ? ";" : ""];
|
|
5472
5472
|
case "TSExternalModuleReference":
|
|
5473
5473
|
return ["require(", r("expression"), ")"];
|
|
5474
5474
|
case "TSModuleDeclaration":
|
|
@@ -5593,7 +5593,7 @@ function vi(e) {
|
|
|
5593
5593
|
function Lc({
|
|
5594
5594
|
parent: e
|
|
5595
5595
|
}) {
|
|
5596
|
-
if (!e || e.type !== "TaggedTemplateExpression") return
|
|
5596
|
+
if (!e || e.type !== "TaggedTemplateExpression") return false;
|
|
5597
5597
|
let t = e.tag.type === "ParenthesizedExpression" ? e.tag.expression : e.tag;
|
|
5598
5598
|
switch (t.type) {
|
|
5599
5599
|
case "MemberExpression":
|
|
@@ -5603,7 +5603,7 @@ function Lc({
|
|
|
5603
5603
|
case "Identifier":
|
|
5604
5604
|
return t.name === "css";
|
|
5605
5605
|
default:
|
|
5606
|
-
return
|
|
5606
|
+
return false;
|
|
5607
5607
|
}
|
|
5608
5608
|
}
|
|
5609
5609
|
function wc({
|
|
@@ -5639,15 +5639,15 @@ async function vc(e, t, r) {
|
|
|
5639
5639
|
let I = null;
|
|
5640
5640
|
S ? I = _c(c) : I = await e(y, {
|
|
5641
5641
|
parser: "graphql"
|
|
5642
|
-
}), I ? (I = tn(I,
|
|
5642
|
+
}), I ? (I = tn(I, false), !p && h && i.push(""), i.push(I), !m && g && i.push("")) : !p && !m && h && i.push(""), l && i.push(l);
|
|
5643
5643
|
}
|
|
5644
5644
|
return ["`", E([C, B(C, i)]), C, "`"];
|
|
5645
5645
|
}
|
|
5646
5646
|
function _c(e) {
|
|
5647
5647
|
let t = [],
|
|
5648
|
-
r =
|
|
5648
|
+
r = false,
|
|
5649
5649
|
n = e.map(s => s.trim());
|
|
5650
|
-
for (let [s, u] of n.entries()) u !== "" && (n[s - 1] === "" && r ? t.push([C, u]) : t.push(u), r =
|
|
5650
|
+
for (let [s, u] of n.entries()) u !== "" && (n[s - 1] === "" && r ? t.push([C, u]) : t.push(u), r = true);
|
|
5651
5651
|
return t.length === 0 ? null : B(C, t);
|
|
5652
5652
|
}
|
|
5653
5653
|
function jc({
|
|
@@ -5685,7 +5685,7 @@ async function Mi(e, t, r, n, s) {
|
|
|
5685
5685
|
for (let _ = 0; _ < v.length; _++) {
|
|
5686
5686
|
let R = v[_];
|
|
5687
5687
|
if (_ % 2 === 0) {
|
|
5688
|
-
R && (R = Ds(R), s.__embeddedInHtml && (R = H(
|
|
5688
|
+
R && (R = Ds(R), s.__embeddedInHtml && (R = H(false, R, /<\/(?=script\b)/gi, "<\\/")), I.push(R));
|
|
5689
5689
|
continue;
|
|
5690
5690
|
}
|
|
5691
5691
|
let T = Number(R);
|
|
@@ -5697,7 +5697,7 @@ async function Mi(e, t, r, n, s) {
|
|
|
5697
5697
|
h = /\s$/.test(o) ? " " : "",
|
|
5698
5698
|
g = s.htmlWhitespaceSensitivity === "ignore" ? C : l && h ? A : null;
|
|
5699
5699
|
return g ? D(["`", E([g, D(f)]), g, "`"]) : et({
|
|
5700
|
-
hug:
|
|
5700
|
+
hug: false
|
|
5701
5701
|
}, D(["`", l, y > 1 ? E(D(f)) : D(f), h, "`"]));
|
|
5702
5702
|
}
|
|
5703
5703
|
function Rc(e) {
|
|
@@ -5714,14 +5714,14 @@ async function Gc(e, t, r) {
|
|
|
5714
5714
|
let {
|
|
5715
5715
|
node: n
|
|
5716
5716
|
} = r,
|
|
5717
|
-
s = H(
|
|
5717
|
+
s = H(false, n.quasis[0].value.raw, /((?:\\\\)*)\\`/g, (o, p) => "\\".repeat(p.length / 2) + "`"),
|
|
5718
5718
|
u = qc(s),
|
|
5719
5719
|
i = u !== "";
|
|
5720
|
-
i && (s = H(
|
|
5720
|
+
i && (s = H(false, s, new RegExp(`^${u}`, "gm"), ""));
|
|
5721
5721
|
let a = tn(await e(s, {
|
|
5722
5722
|
parser: "markdown",
|
|
5723
|
-
__inJsTemplate:
|
|
5724
|
-
}),
|
|
5723
|
+
__inJsTemplate: true
|
|
5724
|
+
}), true);
|
|
5725
5725
|
return ["`", i ? E([F, a]) : [mr, Os(a)], F, "`"];
|
|
5726
5726
|
}
|
|
5727
5727
|
function qc(e) {
|
|
@@ -5747,7 +5747,7 @@ function Xc(e) {
|
|
|
5747
5747
|
for (let n of [_i, ji, Ri, Ji]) if (r = n(e), !!r) return t.quasis.length === 1 && t.quasis[0].value.raw.trim() === "" ? "``" : async (...s) => {
|
|
5748
5748
|
let u = await r(...s);
|
|
5749
5749
|
return u && et({
|
|
5750
|
-
embed:
|
|
5750
|
+
embed: true,
|
|
5751
5751
|
...u.label
|
|
5752
5752
|
}, u);
|
|
5753
5753
|
};
|
|
@@ -5773,7 +5773,7 @@ function Ui(e, t, r) {
|
|
|
5773
5773
|
type: i,
|
|
5774
5774
|
expression: a
|
|
5775
5775
|
} of t.children) i === "JSXExpressionContainer" && a.type === "TemplateLiteral" && Jt(a);
|
|
5776
|
-
e.type === "JSXAttribute" && e.name.name === "css" && e.value.type === "JSXExpressionContainer" && e.value.expression.type === "TemplateLiteral" && Jt(t.value.expression), e.type === "JSXAttribute" && ((s = e.value) == null ? void 0 : s.type) === "Literal" && /["']|"|'/.test(e.value.value) && (t.value.value = H(
|
|
5776
|
+
e.type === "JSXAttribute" && e.name.name === "css" && e.value.type === "JSXExpressionContainer" && e.value.expression.type === "TemplateLiteral" && Jt(t.value.expression), e.type === "JSXAttribute" && ((s = e.value) == null ? void 0 : s.type) === "Literal" && /["']|"|'/.test(e.value.value) && (t.value.value = H(false, t.value.value, /["']|"|'/g, '"'));
|
|
5777
5777
|
let n = e.expression || e.callee;
|
|
5778
5778
|
if (e.type === "Decorator" && n.type === "CallExpression" && n.callee.name === "Component" && n.arguments.length === 1) {
|
|
5779
5779
|
let i = e.expression.arguments[0].properties;
|
|
@@ -5791,7 +5791,7 @@ function Ui(e, t, r) {
|
|
|
5791
5791
|
}
|
|
5792
5792
|
Ui.ignoredProperties = Vc;
|
|
5793
5793
|
var Gi = Ui;
|
|
5794
|
-
var Ft = ma(Hi()
|
|
5794
|
+
var Ft = ma(Hi());
|
|
5795
5795
|
function sl(e) {
|
|
5796
5796
|
if (!e.startsWith("#!")) return "";
|
|
5797
5797
|
let t = e.indexOf(`
|
|
@@ -5837,7 +5837,7 @@ function zi(e) {
|
|
|
5837
5837
|
`) + u;
|
|
5838
5838
|
}
|
|
5839
5839
|
var il = {
|
|
5840
|
-
avoidAstMutation:
|
|
5840
|
+
avoidAstMutation: true
|
|
5841
5841
|
};
|
|
5842
5842
|
var Qi = [{
|
|
5843
5843
|
linguistLanguageId: 183,
|
|
@@ -6067,42 +6067,26 @@ var ar = {
|
|
|
6067
6067
|
bracketSpacing: {
|
|
6068
6068
|
category: "Common",
|
|
6069
6069
|
type: "boolean",
|
|
6070
|
-
default:
|
|
6070
|
+
default: true,
|
|
6071
6071
|
description: "Print spaces between brackets.",
|
|
6072
6072
|
oppositeDescription: "Do not print spaces between brackets."
|
|
6073
6073
|
},
|
|
6074
6074
|
singleQuote: {
|
|
6075
6075
|
category: "Common",
|
|
6076
6076
|
type: "boolean",
|
|
6077
|
-
default:
|
|
6077
|
+
default: false,
|
|
6078
6078
|
description: "Use single quotes instead of double quotes."
|
|
6079
6079
|
},
|
|
6080
|
-
proseWrap: {
|
|
6081
|
-
category: "Common",
|
|
6082
|
-
type: "choice",
|
|
6083
|
-
default: "preserve",
|
|
6084
|
-
description: "How to wrap prose.",
|
|
6085
|
-
choices: [{
|
|
6086
|
-
value: "always",
|
|
6087
|
-
description: "Wrap prose if it exceeds the print width."
|
|
6088
|
-
}, {
|
|
6089
|
-
value: "never",
|
|
6090
|
-
description: "Do not wrap prose."
|
|
6091
|
-
}, {
|
|
6092
|
-
value: "preserve",
|
|
6093
|
-
description: "Wrap prose as-is."
|
|
6094
|
-
}]
|
|
6095
|
-
},
|
|
6096
6080
|
bracketSameLine: {
|
|
6097
6081
|
category: "Common",
|
|
6098
6082
|
type: "boolean",
|
|
6099
|
-
default:
|
|
6083
|
+
default: false,
|
|
6100
6084
|
description: "Put > of opening tags on the last line instead of on a new line."
|
|
6101
6085
|
},
|
|
6102
6086
|
singleAttributePerLine: {
|
|
6103
6087
|
category: "Common",
|
|
6104
6088
|
type: "boolean",
|
|
6105
|
-
default:
|
|
6089
|
+
default: false,
|
|
6106
6090
|
description: "Enforce single attribute per line in HTML, Vue and JSX."
|
|
6107
6091
|
}
|
|
6108
6092
|
};
|
|
@@ -6132,7 +6116,7 @@ var Nt = "JavaScript",
|
|
|
6132
6116
|
semi: {
|
|
6133
6117
|
category: Nt,
|
|
6134
6118
|
type: "boolean",
|
|
6135
|
-
default:
|
|
6119
|
+
default: true,
|
|
6136
6120
|
description: "Print semicolons.",
|
|
6137
6121
|
oppositeDescription: "Do not print semicolons, except at the beginning of lines which may need them."
|
|
6138
6122
|
},
|
|
@@ -6140,7 +6124,7 @@ var Nt = "JavaScript",
|
|
|
6140
6124
|
jsxSingleQuote: {
|
|
6141
6125
|
category: Nt,
|
|
6142
6126
|
type: "boolean",
|
|
6143
|
-
default:
|
|
6127
|
+
default: false,
|
|
6144
6128
|
description: "Use single quotes in JSX."
|
|
6145
6129
|
},
|
|
6146
6130
|
quoteProps: {
|