@quilted/create 0.2.43 → 0.2.45
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 +20 -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/index7.mjs +2 -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.3/node_modules/braces/index.mjs +175 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.mjs +62 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.mjs +106 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.mjs +100 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.mjs +374 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.mjs +35 -0
- package/build/esm/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.mjs +128 -0
- 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 -63
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.mjs +115 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.mjs +120 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.mjs +36 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.mjs +75 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.mjs +101 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.mjs +27 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.mjs +57 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.mjs +50 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.mjs +64 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.mjs +44 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.mjs +36 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.mjs +40 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.mjs +48 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.mjs +47 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.mjs +68 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.mjs +56 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.mjs +75 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.mjs +32 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.mjs +18 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.mjs +30 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.mjs +35 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.mjs +79 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.mjs +229 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.mjs +29 -0
- package/build/esm/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.mjs +22 -0
- 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.1.1/node_modules/fill-range/index.mjs +223 -0
- 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 +53 -46
- package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.mjs +11 -5
- package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.mjs +6 -8
- 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.8/node_modules/micromatch/index.mjs +479 -0
- 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 → prettier@3.5.1}/node_modules/prettier/plugins/babel.mjs +2810 -3362
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.mjs +6611 -0
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.mjs +22 -0
- package/build/esm/node_modules/.pnpm/{prettier@3.0.0 → prettier@3.5.1}/node_modules/prettier/plugins/yaml.mjs +1259 -1271
- package/build/esm/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.mjs +3878 -0
- package/build/esm/node_modules/.pnpm/prompts@2.4.2/node_modules/prompts/dist/elements/date.mjs +0 -1
- 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/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/elements/date.mjs +0 -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.7.0/node_modules/yaml/browser/dist/compose/compose-collection.mjs +67 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.mjs +3 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.mjs +13 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.mjs +8 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.mjs +12 -5
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.mjs +6 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.mjs +10 -7
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.mjs +11 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.mjs +14 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.mjs +20 -7
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.mjs +2 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.mjs +13 -10
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.mjs +1 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.mjs +4 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.mjs +10 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.mjs +7 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.mjs +9 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.mjs +2 -2
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.mjs +44 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.mjs +2 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.mjs +28 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.mjs +22 -4
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +53 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.mjs → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.mjs} +1 -14
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.mjs +1 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.mjs +34 -21
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.mjs +16 -9
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.mjs +2 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.mjs +2 -3
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.mjs +16 -0
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.mjs +16 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.mjs +23 -12
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.mjs +3 -6
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.mjs +1 -1
- package/build/esm/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.mjs +48 -0
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.mjs +9 -8
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.mjs +5 -3
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.mjs +2 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.mjs +14 -13
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.mjs +2 -4
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.mjs +19 -10
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.mjs +8 -2
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.mjs +9 -17
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.mjs +40 -17
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.mjs +41 -21
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.mjs +1 -1
- package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.mjs +2 -1
- package/build/esm/package.mjs +3 -3
- 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 +2 -3
- package/build/esm/shared/prompts.mjs +1 -1
- package/build/esm/shared.mjs +1 -3
- 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 +37 -31
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.esnext +24 -18
- package/build/esnext/node_modules/.pnpm/@nodelib_fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.esnext +22 -15
- 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 +35 -28
- 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 +20 -13
- 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 +32 -25
- 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.3/node_modules/braces/index.esnext +70 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.esnext +57 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.esnext +103 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.esnext +100 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.esnext +243 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.esnext +35 -0
- package/build/esnext/node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.esnext +87 -0
- 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.3.3/node_modules/fast-glob/out/index.esnext +108 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.esnext +100 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.esnext +34 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.esnext +70 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.esnext +92 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.esnext +25 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.esnext +55 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.esnext +41 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.esnext +62 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.esnext +40 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.esnext +34 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.esnext +36 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.esnext +45 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.esnext +45 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.esnext +64 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.esnext +54 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.esnext +67 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.esnext +30 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.esnext +16 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.esnext +28 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.esnext +33 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.esnext +58 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.esnext +171 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.esnext +27 -0
- package/build/esnext/node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.esnext +20 -0
- 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.1.1/node_modules/fill-range/index.esnext +199 -0
- 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 +32 -25
- package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/ignore.esnext +8 -6
- package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/index.esnext +6 -6
- 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.8/node_modules/micromatch/index.esnext +168 -0
- 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.5.1/node_modules/prettier/plugins/babel.esnext +6956 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/estree.esnext +4320 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/typescript.esnext +12888 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/plugins/yaml.esnext +4156 -0
- package/build/esnext/node_modules/.pnpm/prettier@3.5.1/node_modules/prettier/standalone.esnext +2369 -0
- 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.7.0/node_modules/yaml/browser/dist/compose/compose-collection.esnext +60 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-doc.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-node.esnext +11 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/compose-scalar.esnext +13 -5
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/composer.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-map.esnext +13 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-scalar.esnext +8 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-block-seq.esnext +11 -6
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-collection.esnext +12 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.esnext +16 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-props.esnext +21 -9
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-map-includes.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/Document.esnext +8 -13
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/anchors.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/createNode.esnext +5 -3
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/directives.esnext +10 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/errors.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/log.esnext +7 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Alias.esnext +8 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Collection.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/nodes/Node.esnext +36 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Pair.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/Scalar.esnext +2 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLMap.esnext +31 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/YAMLSeq.esnext +20 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/addPairToJSMap.esnext +8 -38
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1/node_modules/yaml/browser/dist/nodes/Node.esnext → yaml@2.7.0/node_modules/yaml/browser/dist/nodes/identity.esnext} +1 -13
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/nodes/toJS.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/cst.esnext +1 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/lexer.esnext +50 -33
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/parser.esnext +16 -9
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/public-api.esnext +3 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/Schema.esnext +2 -3
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/map.esnext +17 -0
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/common/seq.esnext +17 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/float.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/json/schema.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/tags.esnext +25 -14
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/binary.esnext +3 -6
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/bool.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/float.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/yaml@2.7.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.esnext +50 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.esnext +9 -8
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.esnext +5 -4
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/schema.esnext +2 -0
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/set.esnext +14 -13
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.esnext +2 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/foldFlowLines.esnext +20 -10
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringify.esnext +9 -2
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyCollection.esnext +20 -28
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyDocument.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyPair.esnext +44 -23
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyString.esnext +39 -21
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/visit.esnext +1 -1
- package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/index.esnext +2 -1
- package/build/esnext/package.esnext +3 -3
- 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 +2 -2
- package/build/esnext/shared/prompts.esnext +1 -1
- package/build/esnext/shared.esnext +5 -6
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/typescript/shared/package-manager.d.ts.map +1 -1
- package/build/typescript/shared.d.ts.map +1 -1
- package/package.json +8 -8
- package/source/shared/package-manager.ts +0 -1
- package/source/shared/prompts.ts +1 -1
- package/source/shared.ts +1 -2
- 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/_nvmrc +1 -1
- package/templates/workspace/package.json +4 -4
- package/build/esm/_virtual/patterns.mjs +0 -3
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.mjs +0 -168
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.mjs +0 -54
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.mjs +0 -99
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.mjs +0 -94
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.mjs +0 -367
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.mjs +0 -29
- package/build/esm/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.mjs +0 -114
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.mjs +0 -86
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.mjs +0 -26
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.mjs +0 -85
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.mjs +0 -30
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.mjs +0 -69
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.mjs +0 -69
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.mjs +0 -20
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.mjs +0 -55
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.mjs +0 -43
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.mjs +0 -60
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.mjs +0 -38
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.mjs +0 -30
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.mjs +0 -33
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.mjs +0 -43
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.mjs +0 -41
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.mjs +0 -63
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.mjs +0 -51
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.mjs +0 -65
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.mjs +0 -26
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.mjs +0 -12
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.mjs +0 -24
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.mjs +0 -36
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.mjs +0 -39
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.mjs +0 -183
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.mjs +0 -23
- package/build/esm/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.mjs +0 -16
- package/build/esm/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.mjs +0 -216
- package/build/esm/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.mjs +0 -467
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.mjs +0 -6188
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.mjs +0 -29
- package/build/esm/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.mjs +0 -4076
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.mjs +0 -58
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.mjs +0 -7
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/nodes/addPairToJSMap.mjs +0 -83
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.mjs +0 -37
- package/build/esm/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.mjs +0 -34
- package/build/esnext/_virtual/patterns.esnext +0 -3
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.esnext +0 -63
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.esnext +0 -50
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.esnext +0 -96
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.esnext +0 -94
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.esnext +0 -236
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.esnext +0 -29
- package/build/esnext/node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.esnext +0 -73
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/index.esnext +0 -79
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/patterns.esnext +0 -15
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/managers/tasks.esnext +0 -83
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/async.esnext +0 -28
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/deep.esnext +0 -64
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/entry.esnext +0 -64
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/filters/error.esnext +0 -18
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/matcher.esnext +0 -49
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/matchers/partial.esnext +0 -34
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/provider.esnext +0 -58
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/stream.esnext +0 -34
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/sync.esnext +0 -28
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/providers/transformers/entry.esnext +0 -29
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/async.esnext +0 -40
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/reader.esnext +0 -39
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/stream.esnext +0 -59
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/readers/sync.esnext +0 -49
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/settings.esnext +0 -58
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/array.esnext +0 -24
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/errno.esnext +0 -10
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/fs.esnext +0 -22
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/index.esnext +0 -34
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/path.esnext +0 -32
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/pattern.esnext +0 -144
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/stream.esnext +0 -21
- package/build/esnext/node_modules/.pnpm/fast-glob@3.2.12/node_modules/fast-glob/out/utils/string.esnext +0 -14
- package/build/esnext/node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.esnext +0 -192
- package/build/esnext/node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.esnext +0 -157
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/babel.esnext +0 -18
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/estree.esnext +0 -37
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/typescript.esnext +0 -29
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/plugins/yaml.esnext +0 -163
- package/build/esnext/node_modules/.pnpm/prettier@3.0.0/node_modules/prettier/standalone.esnext +0 -36
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/compose/compose-collection.esnext +0 -55
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/log.esnext +0 -10
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/map.esnext +0 -41
- package/build/esnext/node_modules/.pnpm/yaml@2.1.1/node_modules/yaml/browser/dist/schema/common/seq.esnext +0 -33
- /package/build/esm/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.mjs +0 -0
- /package/build/esm/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.mjs +0 -0
- /package/build/esnext/node_modules/.pnpm/{globby@13.1.1 → globby@13.2.2}/node_modules/globby/utilities.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/resolve-end.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-contains-newline.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-empty-scalar-position.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/compose/util-flow-indent-check.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/doc/applyReviver.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/parse/line-counter.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/null.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/common/string.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/bool.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/int.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/core/schema.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/schema/yaml-1.1/int.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyComment.esnext +0 -0
- /package/build/esnext/node_modules/.pnpm/{yaml@2.1.1 → yaml@2.7.0}/node_modules/yaml/browser/dist/stringify/stringifyNumber.esnext +0 -0
|
@@ -1,4076 +0,0 @@
|
|
|
1
|
-
var Wu = Object.create;
|
|
2
|
-
var et = Object.defineProperty;
|
|
3
|
-
var Gu = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var Uu = Object.getOwnPropertyNames;
|
|
5
|
-
var Ku = Object.getPrototypeOf,
|
|
6
|
-
Hu = Object.prototype.hasOwnProperty;
|
|
7
|
-
var Ot = (e, t) => () => (e && (t = e(e = 0)), t);
|
|
8
|
-
var E = (e, t) => () => (t || e((t = {
|
|
9
|
-
exports: {}
|
|
10
|
-
}).exports, t), t.exports),
|
|
11
|
-
ge = (e, t) => {
|
|
12
|
-
for (var r in t) et(e, r, {
|
|
13
|
-
get: t[r],
|
|
14
|
-
enumerable: !0
|
|
15
|
-
});
|
|
16
|
-
},
|
|
17
|
-
Yr = (e, t, r, n) => {
|
|
18
|
-
if (t && typeof t == "object" || typeof t == "function") for (let i of Uu(t)) !Hu.call(e, i) && i !== r && et(e, i, {
|
|
19
|
-
get: () => t[i],
|
|
20
|
-
enumerable: !(n = Gu(t, i)) || n.enumerable
|
|
21
|
-
});
|
|
22
|
-
return e;
|
|
23
|
-
};
|
|
24
|
-
var kt = (e, t, r) => (r = e != null ? Wu(Ku(e)) : {}, Yr(t || !e || !e.__esModule ? et(r, "default", {
|
|
25
|
-
value: e,
|
|
26
|
-
enumerable: !0
|
|
27
|
-
}) : r, e)),
|
|
28
|
-
$ = e => Yr(et({}, "__esModule", {
|
|
29
|
-
value: !0
|
|
30
|
-
}), e);
|
|
31
|
-
var Ju = (e, t, r) => {
|
|
32
|
-
if (!t.has(e)) throw TypeError("Cannot " + r);
|
|
33
|
-
};
|
|
34
|
-
var St = (e, t, r) => {
|
|
35
|
-
if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
|
|
36
|
-
t instanceof WeakSet ? t.add(e) : t.set(e, r);
|
|
37
|
-
};
|
|
38
|
-
var ye = (e, t, r) => (Ju(e, t, "access private method"), r);
|
|
39
|
-
var qr = E(vt => {
|
|
40
|
-
|
|
41
|
-
Object.defineProperty(vt, "__esModule", {
|
|
42
|
-
value: !0
|
|
43
|
-
});
|
|
44
|
-
vt.default = Mr;
|
|
45
|
-
function Mr() {}
|
|
46
|
-
Mr.prototype = {
|
|
47
|
-
diff: function (t, r) {
|
|
48
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {},
|
|
49
|
-
i = n.callback;
|
|
50
|
-
typeof n == "function" && (i = n, n = {}), this.options = n;
|
|
51
|
-
var u = this;
|
|
52
|
-
function o(p) {
|
|
53
|
-
return i ? (setTimeout(function () {
|
|
54
|
-
i(void 0, p);
|
|
55
|
-
}, 0), !0) : p;
|
|
56
|
-
}
|
|
57
|
-
t = this.castInput(t), r = this.castInput(r), t = this.removeEmpty(this.tokenize(t)), r = this.removeEmpty(this.tokenize(r));
|
|
58
|
-
var s = r.length,
|
|
59
|
-
a = t.length,
|
|
60
|
-
D = 1,
|
|
61
|
-
c = s + a;
|
|
62
|
-
n.maxEditLength && (c = Math.min(c, n.maxEditLength));
|
|
63
|
-
var d = [{
|
|
64
|
-
newPos: -1,
|
|
65
|
-
components: []
|
|
66
|
-
}],
|
|
67
|
-
l = this.extractCommon(d[0], r, t, 0);
|
|
68
|
-
if (d[0].newPos + 1 >= s && l + 1 >= a) return o([{
|
|
69
|
-
value: this.join(r),
|
|
70
|
-
count: r.length
|
|
71
|
-
}]);
|
|
72
|
-
function F() {
|
|
73
|
-
for (var p = -1 * D; p <= D; p += 2) {
|
|
74
|
-
var m = void 0,
|
|
75
|
-
h = d[p - 1],
|
|
76
|
-
C = d[p + 1],
|
|
77
|
-
g = (C ? C.newPos : 0) - p;
|
|
78
|
-
h && (d[p - 1] = void 0);
|
|
79
|
-
var y = h && h.newPos + 1 < s,
|
|
80
|
-
b = C && 0 <= g && g < a;
|
|
81
|
-
if (!y && !b) {
|
|
82
|
-
d[p] = void 0;
|
|
83
|
-
continue;
|
|
84
|
-
}
|
|
85
|
-
if (!y || b && h.newPos < C.newPos ? (m = Qu(C), u.pushComponent(m.components, void 0, !0)) : (m = h, m.newPos++, u.pushComponent(m.components, !0, void 0)), g = u.extractCommon(m, r, t, p), m.newPos + 1 >= s && g + 1 >= a) return o(Zu(u, m.components, r, t, u.useLongestToken));
|
|
86
|
-
d[p] = m;
|
|
87
|
-
}
|
|
88
|
-
D++;
|
|
89
|
-
}
|
|
90
|
-
if (i) (function p() {
|
|
91
|
-
setTimeout(function () {
|
|
92
|
-
if (D > c) return i();
|
|
93
|
-
F() || p();
|
|
94
|
-
}, 0);
|
|
95
|
-
})();else for (; D <= c;) {
|
|
96
|
-
var f = F();
|
|
97
|
-
if (f) return f;
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
|
-
pushComponent: function (t, r, n) {
|
|
101
|
-
var i = t[t.length - 1];
|
|
102
|
-
i && i.added === r && i.removed === n ? t[t.length - 1] = {
|
|
103
|
-
count: i.count + 1,
|
|
104
|
-
added: r,
|
|
105
|
-
removed: n
|
|
106
|
-
} : t.push({
|
|
107
|
-
count: 1,
|
|
108
|
-
added: r,
|
|
109
|
-
removed: n
|
|
110
|
-
});
|
|
111
|
-
},
|
|
112
|
-
extractCommon: function (t, r, n, i) {
|
|
113
|
-
for (var u = r.length, o = n.length, s = t.newPos, a = s - i, D = 0; s + 1 < u && a + 1 < o && this.equals(r[s + 1], n[a + 1]);) s++, a++, D++;
|
|
114
|
-
return D && t.components.push({
|
|
115
|
-
count: D
|
|
116
|
-
}), t.newPos = s, a;
|
|
117
|
-
},
|
|
118
|
-
equals: function (t, r) {
|
|
119
|
-
return this.options.comparator ? this.options.comparator(t, r) : t === r || this.options.ignoreCase && t.toLowerCase() === r.toLowerCase();
|
|
120
|
-
},
|
|
121
|
-
removeEmpty: function (t) {
|
|
122
|
-
for (var r = [], n = 0; n < t.length; n++) t[n] && r.push(t[n]);
|
|
123
|
-
return r;
|
|
124
|
-
},
|
|
125
|
-
castInput: function (t) {
|
|
126
|
-
return t;
|
|
127
|
-
},
|
|
128
|
-
tokenize: function (t) {
|
|
129
|
-
return t.split("");
|
|
130
|
-
},
|
|
131
|
-
join: function (t) {
|
|
132
|
-
return t.join("");
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
function Zu(e, t, r, n, i) {
|
|
136
|
-
for (var u = 0, o = t.length, s = 0, a = 0; u < o; u++) {
|
|
137
|
-
var D = t[u];
|
|
138
|
-
if (D.removed) {
|
|
139
|
-
if (D.value = e.join(n.slice(a, a + D.count)), a += D.count, u && t[u - 1].added) {
|
|
140
|
-
var d = t[u - 1];
|
|
141
|
-
t[u - 1] = t[u], t[u] = d;
|
|
142
|
-
}
|
|
143
|
-
} else {
|
|
144
|
-
if (!D.added && i) {
|
|
145
|
-
var c = r.slice(s, s + D.count);
|
|
146
|
-
c = c.map(function (F, f) {
|
|
147
|
-
var p = n[a + f];
|
|
148
|
-
return p.length > F.length ? p : F;
|
|
149
|
-
}), D.value = e.join(c);
|
|
150
|
-
} else D.value = e.join(r.slice(s, s + D.count));
|
|
151
|
-
s += D.count, D.added || (a += D.count);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
var l = t[o - 1];
|
|
155
|
-
return o > 1 && typeof l.value == "string" && (l.added || l.removed) && e.equals("", l.value) && (t[o - 2].value += l.value, t.pop()), t;
|
|
156
|
-
}
|
|
157
|
-
function Qu(e) {
|
|
158
|
-
return {
|
|
159
|
-
newPos: e.newPos,
|
|
160
|
-
components: e.components.slice(0)
|
|
161
|
-
};
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
var $r = E(ve => {
|
|
165
|
-
|
|
166
|
-
Object.defineProperty(ve, "__esModule", {
|
|
167
|
-
value: !0
|
|
168
|
-
});
|
|
169
|
-
ve.diffArrays = ri;
|
|
170
|
-
ve.arrayDiff = void 0;
|
|
171
|
-
var ei = ti(qr());
|
|
172
|
-
function ti(e) {
|
|
173
|
-
return e && e.__esModule ? e : {
|
|
174
|
-
default: e
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
var Se = new ei.default();
|
|
178
|
-
ve.arrayDiff = Se;
|
|
179
|
-
Se.tokenize = function (e) {
|
|
180
|
-
return e.slice();
|
|
181
|
-
};
|
|
182
|
-
Se.join = Se.removeEmpty = function (e) {
|
|
183
|
-
return e;
|
|
184
|
-
};
|
|
185
|
-
function ri(e, t, r) {
|
|
186
|
-
return Se.diff(e, t, r);
|
|
187
|
-
}
|
|
188
|
-
});
|
|
189
|
-
var ne = {};
|
|
190
|
-
ge(ne, {
|
|
191
|
-
__assign: () => Yt,
|
|
192
|
-
__asyncDelegator: () => Ri,
|
|
193
|
-
__asyncGenerator: () => Pi,
|
|
194
|
-
__asyncValues: () => Ii,
|
|
195
|
-
__await: () => ze,
|
|
196
|
-
__awaiter: () => Oi,
|
|
197
|
-
__classPrivateFieldGet: () => Mi,
|
|
198
|
-
__classPrivateFieldSet: () => qi,
|
|
199
|
-
__createBinding: () => Si,
|
|
200
|
-
__decorate: () => Ai,
|
|
201
|
-
__exportStar: () => vi,
|
|
202
|
-
__extends: () => xi,
|
|
203
|
-
__generator: () => ki,
|
|
204
|
-
__importDefault: () => Yi,
|
|
205
|
-
__importStar: () => ji,
|
|
206
|
-
__makeTemplateObject: () => Li,
|
|
207
|
-
__metadata: () => wi,
|
|
208
|
-
__param: () => Bi,
|
|
209
|
-
__read: () => Cn,
|
|
210
|
-
__rest: () => bi,
|
|
211
|
-
__spread: () => Ti,
|
|
212
|
-
__spreadArrays: () => Ni,
|
|
213
|
-
__values: () => Mt
|
|
214
|
-
});
|
|
215
|
-
function xi(e, t) {
|
|
216
|
-
jt(e, t);
|
|
217
|
-
function r() {
|
|
218
|
-
this.constructor = e;
|
|
219
|
-
}
|
|
220
|
-
e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
|
|
221
|
-
}
|
|
222
|
-
function bi(e, t) {
|
|
223
|
-
var r = {};
|
|
224
|
-
for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
|
|
225
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++) t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
|
|
226
|
-
return r;
|
|
227
|
-
}
|
|
228
|
-
function Ai(e, t, r, n) {
|
|
229
|
-
var i = arguments.length,
|
|
230
|
-
u = i < 3 ? t : n === null ? n = Object.getOwnPropertyDescriptor(t, r) : n,
|
|
231
|
-
o;
|
|
232
|
-
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") u = Reflect.decorate(e, t, r, n);else for (var s = e.length - 1; s >= 0; s--) (o = e[s]) && (u = (i < 3 ? o(u) : i > 3 ? o(t, r, u) : o(t, r)) || u);
|
|
233
|
-
return i > 3 && u && Object.defineProperty(t, r, u), u;
|
|
234
|
-
}
|
|
235
|
-
function Bi(e, t) {
|
|
236
|
-
return function (r, n) {
|
|
237
|
-
t(r, n, e);
|
|
238
|
-
};
|
|
239
|
-
}
|
|
240
|
-
function wi(e, t) {
|
|
241
|
-
if (typeof Reflect == "object" && typeof Reflect.metadata == "function") return Reflect.metadata(e, t);
|
|
242
|
-
}
|
|
243
|
-
function Oi(e, t, r, n) {
|
|
244
|
-
function i(u) {
|
|
245
|
-
return u instanceof r ? u : new r(function (o) {
|
|
246
|
-
o(u);
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
return new (r || (r = Promise))(function (u, o) {
|
|
250
|
-
function s(c) {
|
|
251
|
-
try {
|
|
252
|
-
D(n.next(c));
|
|
253
|
-
} catch (d) {
|
|
254
|
-
o(d);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
function a(c) {
|
|
258
|
-
try {
|
|
259
|
-
D(n.throw(c));
|
|
260
|
-
} catch (d) {
|
|
261
|
-
o(d);
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
function D(c) {
|
|
265
|
-
c.done ? u(c.value) : i(c.value).then(s, a);
|
|
266
|
-
}
|
|
267
|
-
D((n = n.apply(e, t || [])).next());
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
function ki(e, t) {
|
|
271
|
-
var r = {
|
|
272
|
-
label: 0,
|
|
273
|
-
sent: function () {
|
|
274
|
-
if (u[0] & 1) throw u[1];
|
|
275
|
-
return u[1];
|
|
276
|
-
},
|
|
277
|
-
trys: [],
|
|
278
|
-
ops: []
|
|
279
|
-
},
|
|
280
|
-
n,
|
|
281
|
-
i,
|
|
282
|
-
u,
|
|
283
|
-
o;
|
|
284
|
-
return o = {
|
|
285
|
-
next: s(0),
|
|
286
|
-
throw: s(1),
|
|
287
|
-
return: s(2)
|
|
288
|
-
}, typeof Symbol == "function" && (o[Symbol.iterator] = function () {
|
|
289
|
-
return this;
|
|
290
|
-
}), o;
|
|
291
|
-
function s(D) {
|
|
292
|
-
return function (c) {
|
|
293
|
-
return a([D, c]);
|
|
294
|
-
};
|
|
295
|
-
}
|
|
296
|
-
function a(D) {
|
|
297
|
-
if (n) throw new TypeError("Generator is already executing.");
|
|
298
|
-
for (; r;) try {
|
|
299
|
-
if (n = 1, i && (u = D[0] & 2 ? i.return : D[0] ? i.throw || ((u = i.return) && u.call(i), 0) : i.next) && !(u = u.call(i, D[1])).done) return u;
|
|
300
|
-
switch (i = 0, u && (D = [D[0] & 2, u.value]), D[0]) {
|
|
301
|
-
case 0:
|
|
302
|
-
case 1:
|
|
303
|
-
u = D;
|
|
304
|
-
break;
|
|
305
|
-
case 4:
|
|
306
|
-
return r.label++, {
|
|
307
|
-
value: D[1],
|
|
308
|
-
done: !1
|
|
309
|
-
};
|
|
310
|
-
case 5:
|
|
311
|
-
r.label++, i = D[1], D = [0];
|
|
312
|
-
continue;
|
|
313
|
-
case 7:
|
|
314
|
-
D = r.ops.pop(), r.trys.pop();
|
|
315
|
-
continue;
|
|
316
|
-
default:
|
|
317
|
-
if (u = r.trys, !(u = u.length > 0 && u[u.length - 1]) && (D[0] === 6 || D[0] === 2)) {
|
|
318
|
-
r = 0;
|
|
319
|
-
continue;
|
|
320
|
-
}
|
|
321
|
-
if (D[0] === 3 && (!u || D[1] > u[0] && D[1] < u[3])) {
|
|
322
|
-
r.label = D[1];
|
|
323
|
-
break;
|
|
324
|
-
}
|
|
325
|
-
if (D[0] === 6 && r.label < u[1]) {
|
|
326
|
-
r.label = u[1], u = D;
|
|
327
|
-
break;
|
|
328
|
-
}
|
|
329
|
-
if (u && r.label < u[2]) {
|
|
330
|
-
r.label = u[2], r.ops.push(D);
|
|
331
|
-
break;
|
|
332
|
-
}
|
|
333
|
-
u[2] && r.ops.pop(), r.trys.pop();
|
|
334
|
-
continue;
|
|
335
|
-
}
|
|
336
|
-
D = t.call(e, r);
|
|
337
|
-
} catch (c) {
|
|
338
|
-
D = [6, c], i = 0;
|
|
339
|
-
} finally {
|
|
340
|
-
n = u = 0;
|
|
341
|
-
}
|
|
342
|
-
if (D[0] & 5) throw D[1];
|
|
343
|
-
return {
|
|
344
|
-
value: D[0] ? D[1] : void 0,
|
|
345
|
-
done: !0
|
|
346
|
-
};
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
function Si(e, t, r, n) {
|
|
350
|
-
n === void 0 && (n = r), e[n] = t[r];
|
|
351
|
-
}
|
|
352
|
-
function vi(e, t) {
|
|
353
|
-
for (var r in e) r !== "default" && !t.hasOwnProperty(r) && (t[r] = e[r]);
|
|
354
|
-
}
|
|
355
|
-
function Mt(e) {
|
|
356
|
-
var t = typeof Symbol == "function" && Symbol.iterator,
|
|
357
|
-
r = t && e[t],
|
|
358
|
-
n = 0;
|
|
359
|
-
if (r) return r.call(e);
|
|
360
|
-
if (e && typeof e.length == "number") return {
|
|
361
|
-
next: function () {
|
|
362
|
-
return e && n >= e.length && (e = void 0), {
|
|
363
|
-
value: e && e[n++],
|
|
364
|
-
done: !e
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
369
|
-
}
|
|
370
|
-
function Cn(e, t) {
|
|
371
|
-
var r = typeof Symbol == "function" && e[Symbol.iterator];
|
|
372
|
-
if (!r) return e;
|
|
373
|
-
var n = r.call(e),
|
|
374
|
-
i,
|
|
375
|
-
u = [],
|
|
376
|
-
o;
|
|
377
|
-
try {
|
|
378
|
-
for (; (t === void 0 || t-- > 0) && !(i = n.next()).done;) u.push(i.value);
|
|
379
|
-
} catch (s) {
|
|
380
|
-
o = {
|
|
381
|
-
error: s
|
|
382
|
-
};
|
|
383
|
-
} finally {
|
|
384
|
-
try {
|
|
385
|
-
i && !i.done && (r = n.return) && r.call(n);
|
|
386
|
-
} finally {
|
|
387
|
-
if (o) throw o.error;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
return u;
|
|
391
|
-
}
|
|
392
|
-
function Ti() {
|
|
393
|
-
for (var e = [], t = 0; t < arguments.length; t++) e = e.concat(Cn(arguments[t]));
|
|
394
|
-
return e;
|
|
395
|
-
}
|
|
396
|
-
function Ni() {
|
|
397
|
-
for (var e = 0, t = 0, r = arguments.length; t < r; t++) e += arguments[t].length;
|
|
398
|
-
for (var n = Array(e), i = 0, t = 0; t < r; t++) for (var u = arguments[t], o = 0, s = u.length; o < s; o++, i++) n[i] = u[o];
|
|
399
|
-
return n;
|
|
400
|
-
}
|
|
401
|
-
function ze(e) {
|
|
402
|
-
return this instanceof ze ? (this.v = e, this) : new ze(e);
|
|
403
|
-
}
|
|
404
|
-
function Pi(e, t, r) {
|
|
405
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
406
|
-
var n = r.apply(e, t || []),
|
|
407
|
-
i,
|
|
408
|
-
u = [];
|
|
409
|
-
return i = {}, o("next"), o("throw"), o("return"), i[Symbol.asyncIterator] = function () {
|
|
410
|
-
return this;
|
|
411
|
-
}, i;
|
|
412
|
-
function o(l) {
|
|
413
|
-
n[l] && (i[l] = function (F) {
|
|
414
|
-
return new Promise(function (f, p) {
|
|
415
|
-
u.push([l, F, f, p]) > 1 || s(l, F);
|
|
416
|
-
});
|
|
417
|
-
});
|
|
418
|
-
}
|
|
419
|
-
function s(l, F) {
|
|
420
|
-
try {
|
|
421
|
-
a(n[l](F));
|
|
422
|
-
} catch (f) {
|
|
423
|
-
d(u[0][3], f);
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
function a(l) {
|
|
427
|
-
l.value instanceof ze ? Promise.resolve(l.value.v).then(D, c) : d(u[0][2], l);
|
|
428
|
-
}
|
|
429
|
-
function D(l) {
|
|
430
|
-
s("next", l);
|
|
431
|
-
}
|
|
432
|
-
function c(l) {
|
|
433
|
-
s("throw", l);
|
|
434
|
-
}
|
|
435
|
-
function d(l, F) {
|
|
436
|
-
l(F), u.shift(), u.length && s(u[0][0], u[0][1]);
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
function Ri(e) {
|
|
440
|
-
var t, r;
|
|
441
|
-
return t = {}, n("next"), n("throw", function (i) {
|
|
442
|
-
throw i;
|
|
443
|
-
}), n("return"), t[Symbol.iterator] = function () {
|
|
444
|
-
return this;
|
|
445
|
-
}, t;
|
|
446
|
-
function n(i, u) {
|
|
447
|
-
t[i] = e[i] ? function (o) {
|
|
448
|
-
return (r = !r) ? {
|
|
449
|
-
value: ze(e[i](o)),
|
|
450
|
-
done: i === "return"
|
|
451
|
-
} : u ? u(o) : o;
|
|
452
|
-
} : u;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
function Ii(e) {
|
|
456
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
457
|
-
var t = e[Symbol.asyncIterator],
|
|
458
|
-
r;
|
|
459
|
-
return t ? t.call(e) : (e = typeof Mt == "function" ? Mt(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function () {
|
|
460
|
-
return this;
|
|
461
|
-
}, r);
|
|
462
|
-
function n(u) {
|
|
463
|
-
r[u] = e[u] && function (o) {
|
|
464
|
-
return new Promise(function (s, a) {
|
|
465
|
-
o = e[u](o), i(s, a, o.done, o.value);
|
|
466
|
-
});
|
|
467
|
-
};
|
|
468
|
-
}
|
|
469
|
-
function i(u, o, s, a) {
|
|
470
|
-
Promise.resolve(a).then(function (D) {
|
|
471
|
-
u({
|
|
472
|
-
value: D,
|
|
473
|
-
done: s
|
|
474
|
-
});
|
|
475
|
-
}, o);
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
function Li(e, t) {
|
|
479
|
-
return Object.defineProperty ? Object.defineProperty(e, "raw", {
|
|
480
|
-
value: t
|
|
481
|
-
}) : e.raw = t, e;
|
|
482
|
-
}
|
|
483
|
-
function ji(e) {
|
|
484
|
-
if (e && e.__esModule) return e;
|
|
485
|
-
var t = {};
|
|
486
|
-
if (e != null) for (var r in e) Object.hasOwnProperty.call(e, r) && (t[r] = e[r]);
|
|
487
|
-
return t.default = e, t;
|
|
488
|
-
}
|
|
489
|
-
function Yi(e) {
|
|
490
|
-
return e && e.__esModule ? e : {
|
|
491
|
-
default: e
|
|
492
|
-
};
|
|
493
|
-
}
|
|
494
|
-
function Mi(e, t) {
|
|
495
|
-
if (!t.has(e)) throw new TypeError("attempted to get private field on non-instance");
|
|
496
|
-
return t.get(e);
|
|
497
|
-
}
|
|
498
|
-
function qi(e, t, r) {
|
|
499
|
-
if (!t.has(e)) throw new TypeError("attempted to set private field on non-instance");
|
|
500
|
-
return t.set(e, r), r;
|
|
501
|
-
}
|
|
502
|
-
var jt,
|
|
503
|
-
Yt,
|
|
504
|
-
ue = Ot(() => {
|
|
505
|
-
jt = function (e, t) {
|
|
506
|
-
return jt = Object.setPrototypeOf || {
|
|
507
|
-
__proto__: []
|
|
508
|
-
} instanceof Array && function (r, n) {
|
|
509
|
-
r.__proto__ = n;
|
|
510
|
-
} || function (r, n) {
|
|
511
|
-
for (var i in n) n.hasOwnProperty(i) && (r[i] = n[i]);
|
|
512
|
-
}, jt(e, t);
|
|
513
|
-
};
|
|
514
|
-
Yt = function () {
|
|
515
|
-
return Yt = Object.assign || function (t) {
|
|
516
|
-
for (var r, n = 1, i = arguments.length; n < i; n++) {
|
|
517
|
-
r = arguments[n];
|
|
518
|
-
for (var u in r) Object.prototype.hasOwnProperty.call(r, u) && (t[u] = r[u]);
|
|
519
|
-
}
|
|
520
|
-
return t;
|
|
521
|
-
}, Yt.apply(this, arguments);
|
|
522
|
-
};
|
|
523
|
-
});
|
|
524
|
-
var qt = E(me => {
|
|
525
|
-
|
|
526
|
-
Object.defineProperty(me, "__esModule", {
|
|
527
|
-
value: !0
|
|
528
|
-
});
|
|
529
|
-
me.apiDescriptor = {
|
|
530
|
-
key: e => /^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e) ? e : JSON.stringify(e),
|
|
531
|
-
value(e) {
|
|
532
|
-
if (e === null || typeof e != "object") return JSON.stringify(e);
|
|
533
|
-
if (Array.isArray(e)) return `[${e.map(r => me.apiDescriptor.value(r)).join(", ")}]`;
|
|
534
|
-
let t = Object.keys(e);
|
|
535
|
-
return t.length === 0 ? "{}" : `{ ${t.map(r => `${me.apiDescriptor.key(r)}: ${me.apiDescriptor.value(e[r])}`).join(", ")} }`;
|
|
536
|
-
},
|
|
537
|
-
pair: ({
|
|
538
|
-
key: e,
|
|
539
|
-
value: t
|
|
540
|
-
}) => me.apiDescriptor.value({
|
|
541
|
-
[e]: t
|
|
542
|
-
})
|
|
543
|
-
};
|
|
544
|
-
});
|
|
545
|
-
var gn = E($t => {
|
|
546
|
-
|
|
547
|
-
Object.defineProperty($t, "__esModule", {
|
|
548
|
-
value: !0
|
|
549
|
-
});
|
|
550
|
-
var $i = (ue(), $(ne));
|
|
551
|
-
$i.__exportStar(qt(), $t);
|
|
552
|
-
});
|
|
553
|
-
var ft = {};
|
|
554
|
-
ge(ft, {
|
|
555
|
-
default: () => Vt
|
|
556
|
-
});
|
|
557
|
-
var Y,
|
|
558
|
-
Vt,
|
|
559
|
-
We = Ot(() => {
|
|
560
|
-
Y = e => e;
|
|
561
|
-
Y.grey = Y;
|
|
562
|
-
Y.red = Y;
|
|
563
|
-
Y.bold = Y;
|
|
564
|
-
Y.yellow = Y;
|
|
565
|
-
Y.blue = Y;
|
|
566
|
-
Y.default = Y;
|
|
567
|
-
Vt = Y;
|
|
568
|
-
});
|
|
569
|
-
var Wt = E(zt => {
|
|
570
|
-
|
|
571
|
-
Object.defineProperty(zt, "__esModule", {
|
|
572
|
-
value: !0
|
|
573
|
-
});
|
|
574
|
-
var yn = (We(), $(ft));
|
|
575
|
-
zt.commonDeprecatedHandler = (e, t, {
|
|
576
|
-
descriptor: r
|
|
577
|
-
}) => {
|
|
578
|
-
let n = [`${yn.default.yellow(typeof e == "string" ? r.key(e) : r.pair(e))} is deprecated`];
|
|
579
|
-
return t && n.push(`we now treat it as ${yn.default.blue(typeof t == "string" ? r.key(t) : r.pair(t))}`), n.join("; ") + ".";
|
|
580
|
-
};
|
|
581
|
-
});
|
|
582
|
-
var _n = E(Gt => {
|
|
583
|
-
|
|
584
|
-
Object.defineProperty(Gt, "__esModule", {
|
|
585
|
-
value: !0
|
|
586
|
-
});
|
|
587
|
-
var Vi = (ue(), $(ne));
|
|
588
|
-
Vi.__exportStar(Wt(), Gt);
|
|
589
|
-
});
|
|
590
|
-
var xn = E(Kt => {
|
|
591
|
-
|
|
592
|
-
Object.defineProperty(Kt, "__esModule", {
|
|
593
|
-
value: !0
|
|
594
|
-
});
|
|
595
|
-
var Ut = (We(), $(ft));
|
|
596
|
-
Kt.commonInvalidHandler = (e, t, r) => [`Invalid ${Ut.default.red(r.descriptor.key(e))} value.`, `Expected ${Ut.default.blue(r.schemas[e].expected(r))},`, `but received ${Ut.default.red(r.descriptor.value(t))}.`].join(" ");
|
|
597
|
-
});
|
|
598
|
-
var Jt = E(Ht => {
|
|
599
|
-
|
|
600
|
-
Object.defineProperty(Ht, "__esModule", {
|
|
601
|
-
value: !0
|
|
602
|
-
});
|
|
603
|
-
var zi = (ue(), $(ne));
|
|
604
|
-
zi.__exportStar(xn(), Ht);
|
|
605
|
-
});
|
|
606
|
-
var Bn = E((Pa, An) => {
|
|
607
|
-
|
|
608
|
-
var Xt = [],
|
|
609
|
-
bn = [];
|
|
610
|
-
An.exports = function (e, t) {
|
|
611
|
-
if (e === t) return 0;
|
|
612
|
-
var r = e;
|
|
613
|
-
e.length > t.length && (e = t, t = r);
|
|
614
|
-
var n = e.length,
|
|
615
|
-
i = t.length;
|
|
616
|
-
if (n === 0) return i;
|
|
617
|
-
if (i === 0) return n;
|
|
618
|
-
for (; n > 0 && e.charCodeAt(~-n) === t.charCodeAt(~-i);) n--, i--;
|
|
619
|
-
if (n === 0) return i;
|
|
620
|
-
for (var u = 0; u < n && e.charCodeAt(u) === t.charCodeAt(u);) u++;
|
|
621
|
-
if (n -= u, i -= u, n === 0) return i;
|
|
622
|
-
for (var o, s, a, D, c = 0, d = 0; c < n;) bn[u + c] = e.charCodeAt(u + c), Xt[c] = ++c;
|
|
623
|
-
for (; d < i;) for (o = t.charCodeAt(u + d), a = d++, s = d, c = 0; c < n; c++) D = o === bn[u + c] ? a : a + 1, a = Xt[c], s = Xt[c] = a > s ? D > s ? s + 1 : D : D > a ? a + 1 : D;
|
|
624
|
-
return s;
|
|
625
|
-
};
|
|
626
|
-
});
|
|
627
|
-
var Qt = E(Zt => {
|
|
628
|
-
|
|
629
|
-
Object.defineProperty(Zt, "__esModule", {
|
|
630
|
-
value: !0
|
|
631
|
-
});
|
|
632
|
-
var wn = (We(), $(ft)),
|
|
633
|
-
Wi = Bn();
|
|
634
|
-
Zt.levenUnknownHandler = (e, t, {
|
|
635
|
-
descriptor: r,
|
|
636
|
-
logger: n,
|
|
637
|
-
schemas: i
|
|
638
|
-
}) => {
|
|
639
|
-
let u = [`Ignored unknown option ${wn.default.yellow(r.pair({
|
|
640
|
-
key: e,
|
|
641
|
-
value: t
|
|
642
|
-
}))}.`],
|
|
643
|
-
o = Object.keys(i).sort().find(s => Wi(e, s) < 3);
|
|
644
|
-
o && u.push(`Did you mean ${wn.default.blue(r.key(o))}?`), n.warn(u.join(" "));
|
|
645
|
-
};
|
|
646
|
-
});
|
|
647
|
-
var On = E(er => {
|
|
648
|
-
|
|
649
|
-
Object.defineProperty(er, "__esModule", {
|
|
650
|
-
value: !0
|
|
651
|
-
});
|
|
652
|
-
var Gi = (ue(), $(ne));
|
|
653
|
-
Gi.__exportStar(Qt(), er);
|
|
654
|
-
});
|
|
655
|
-
var kn = E(Ge => {
|
|
656
|
-
|
|
657
|
-
Object.defineProperty(Ge, "__esModule", {
|
|
658
|
-
value: !0
|
|
659
|
-
});
|
|
660
|
-
var tr = (ue(), $(ne));
|
|
661
|
-
tr.__exportStar(_n(), Ge);
|
|
662
|
-
tr.__exportStar(Jt(), Ge);
|
|
663
|
-
tr.__exportStar(On(), Ge);
|
|
664
|
-
});
|
|
665
|
-
var ie = E(dt => {
|
|
666
|
-
|
|
667
|
-
Object.defineProperty(dt, "__esModule", {
|
|
668
|
-
value: !0
|
|
669
|
-
});
|
|
670
|
-
var Ui = ["default", "expected", "validate", "deprecated", "forward", "redirect", "overlap", "preprocess", "postprocess"];
|
|
671
|
-
function Sn(e, t) {
|
|
672
|
-
let r = new e(t),
|
|
673
|
-
n = Object.create(r);
|
|
674
|
-
for (let i of Ui) i in t && (n[i] = Ki(t[i], r, pt.prototype[i].length));
|
|
675
|
-
return n;
|
|
676
|
-
}
|
|
677
|
-
dt.createSchema = Sn;
|
|
678
|
-
var pt = class {
|
|
679
|
-
constructor(t) {
|
|
680
|
-
this.name = t.name;
|
|
681
|
-
}
|
|
682
|
-
static create(t) {
|
|
683
|
-
return Sn(this, t);
|
|
684
|
-
}
|
|
685
|
-
default(t) {}
|
|
686
|
-
expected(t) {
|
|
687
|
-
return "nothing";
|
|
688
|
-
}
|
|
689
|
-
validate(t, r) {
|
|
690
|
-
return !1;
|
|
691
|
-
}
|
|
692
|
-
deprecated(t, r) {
|
|
693
|
-
return !1;
|
|
694
|
-
}
|
|
695
|
-
forward(t, r) {}
|
|
696
|
-
redirect(t, r) {}
|
|
697
|
-
overlap(t, r, n) {
|
|
698
|
-
return t;
|
|
699
|
-
}
|
|
700
|
-
preprocess(t, r) {
|
|
701
|
-
return t;
|
|
702
|
-
}
|
|
703
|
-
postprocess(t, r) {
|
|
704
|
-
return t;
|
|
705
|
-
}
|
|
706
|
-
};
|
|
707
|
-
dt.Schema = pt;
|
|
708
|
-
function Ki(e, t, r) {
|
|
709
|
-
return typeof e == "function" ? (...n) => e(...n.slice(0, r - 1), t, ...n.slice(r - 1)) : () => e;
|
|
710
|
-
}
|
|
711
|
-
});
|
|
712
|
-
var vn = E(nr => {
|
|
713
|
-
|
|
714
|
-
Object.defineProperty(nr, "__esModule", {
|
|
715
|
-
value: !0
|
|
716
|
-
});
|
|
717
|
-
var Hi = ie(),
|
|
718
|
-
rr = class extends Hi.Schema {
|
|
719
|
-
constructor(t) {
|
|
720
|
-
super(t), this._sourceName = t.sourceName;
|
|
721
|
-
}
|
|
722
|
-
expected(t) {
|
|
723
|
-
return t.schemas[this._sourceName].expected(t);
|
|
724
|
-
}
|
|
725
|
-
validate(t, r) {
|
|
726
|
-
return r.schemas[this._sourceName].validate(t, r);
|
|
727
|
-
}
|
|
728
|
-
redirect(t, r) {
|
|
729
|
-
return this._sourceName;
|
|
730
|
-
}
|
|
731
|
-
};
|
|
732
|
-
nr.AliasSchema = rr;
|
|
733
|
-
});
|
|
734
|
-
var Tn = E(ir => {
|
|
735
|
-
|
|
736
|
-
Object.defineProperty(ir, "__esModule", {
|
|
737
|
-
value: !0
|
|
738
|
-
});
|
|
739
|
-
var Ji = ie(),
|
|
740
|
-
ur = class extends Ji.Schema {
|
|
741
|
-
expected() {
|
|
742
|
-
return "anything";
|
|
743
|
-
}
|
|
744
|
-
validate() {
|
|
745
|
-
return !0;
|
|
746
|
-
}
|
|
747
|
-
};
|
|
748
|
-
ir.AnySchema = ur;
|
|
749
|
-
});
|
|
750
|
-
var Pn = E(sr => {
|
|
751
|
-
|
|
752
|
-
Object.defineProperty(sr, "__esModule", {
|
|
753
|
-
value: !0
|
|
754
|
-
});
|
|
755
|
-
var Xi = (ue(), $(ne)),
|
|
756
|
-
Zi = ie(),
|
|
757
|
-
or = class extends Zi.Schema {
|
|
758
|
-
constructor(t) {
|
|
759
|
-
var {
|
|
760
|
-
valueSchema: r,
|
|
761
|
-
name: n = r.name
|
|
762
|
-
} = t,
|
|
763
|
-
i = Xi.__rest(t, ["valueSchema", "name"]);
|
|
764
|
-
super(Object.assign({}, i, {
|
|
765
|
-
name: n
|
|
766
|
-
})), this._valueSchema = r;
|
|
767
|
-
}
|
|
768
|
-
expected(t) {
|
|
769
|
-
return `an array of ${this._valueSchema.expected(t)}`;
|
|
770
|
-
}
|
|
771
|
-
validate(t, r) {
|
|
772
|
-
if (!Array.isArray(t)) return !1;
|
|
773
|
-
let n = [];
|
|
774
|
-
for (let i of t) {
|
|
775
|
-
let u = r.normalizeValidateResult(this._valueSchema.validate(i, r), i);
|
|
776
|
-
u !== !0 && n.push(u.value);
|
|
777
|
-
}
|
|
778
|
-
return n.length === 0 ? !0 : {
|
|
779
|
-
value: n
|
|
780
|
-
};
|
|
781
|
-
}
|
|
782
|
-
deprecated(t, r) {
|
|
783
|
-
let n = [];
|
|
784
|
-
for (let i of t) {
|
|
785
|
-
let u = r.normalizeDeprecatedResult(this._valueSchema.deprecated(i, r), i);
|
|
786
|
-
u !== !1 && n.push(...u.map(({
|
|
787
|
-
value: o
|
|
788
|
-
}) => ({
|
|
789
|
-
value: [o]
|
|
790
|
-
})));
|
|
791
|
-
}
|
|
792
|
-
return n;
|
|
793
|
-
}
|
|
794
|
-
forward(t, r) {
|
|
795
|
-
let n = [];
|
|
796
|
-
for (let i of t) {
|
|
797
|
-
let u = r.normalizeForwardResult(this._valueSchema.forward(i, r), i);
|
|
798
|
-
n.push(...u.map(Nn));
|
|
799
|
-
}
|
|
800
|
-
return n;
|
|
801
|
-
}
|
|
802
|
-
redirect(t, r) {
|
|
803
|
-
let n = [],
|
|
804
|
-
i = [];
|
|
805
|
-
for (let u of t) {
|
|
806
|
-
let o = r.normalizeRedirectResult(this._valueSchema.redirect(u, r), u);
|
|
807
|
-
"remain" in o && n.push(o.remain), i.push(...o.redirect.map(Nn));
|
|
808
|
-
}
|
|
809
|
-
return n.length === 0 ? {
|
|
810
|
-
redirect: i
|
|
811
|
-
} : {
|
|
812
|
-
redirect: i,
|
|
813
|
-
remain: n
|
|
814
|
-
};
|
|
815
|
-
}
|
|
816
|
-
overlap(t, r) {
|
|
817
|
-
return t.concat(r);
|
|
818
|
-
}
|
|
819
|
-
};
|
|
820
|
-
sr.ArraySchema = or;
|
|
821
|
-
function Nn({
|
|
822
|
-
from: e,
|
|
823
|
-
to: t
|
|
824
|
-
}) {
|
|
825
|
-
return {
|
|
826
|
-
from: [e],
|
|
827
|
-
to: t
|
|
828
|
-
};
|
|
829
|
-
}
|
|
830
|
-
});
|
|
831
|
-
var Rn = E(Dr => {
|
|
832
|
-
|
|
833
|
-
Object.defineProperty(Dr, "__esModule", {
|
|
834
|
-
value: !0
|
|
835
|
-
});
|
|
836
|
-
var Qi = ie(),
|
|
837
|
-
ar = class extends Qi.Schema {
|
|
838
|
-
expected() {
|
|
839
|
-
return "true or false";
|
|
840
|
-
}
|
|
841
|
-
validate(t) {
|
|
842
|
-
return typeof t == "boolean";
|
|
843
|
-
}
|
|
844
|
-
};
|
|
845
|
-
Dr.BooleanSchema = ar;
|
|
846
|
-
});
|
|
847
|
-
var Ft = E(j => {
|
|
848
|
-
|
|
849
|
-
Object.defineProperty(j, "__esModule", {
|
|
850
|
-
value: !0
|
|
851
|
-
});
|
|
852
|
-
function eo(e, t) {
|
|
853
|
-
let r = Object.create(null);
|
|
854
|
-
for (let n of e) {
|
|
855
|
-
let i = n[t];
|
|
856
|
-
if (r[i]) throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);
|
|
857
|
-
r[i] = n;
|
|
858
|
-
}
|
|
859
|
-
return r;
|
|
860
|
-
}
|
|
861
|
-
j.recordFromArray = eo;
|
|
862
|
-
function to(e, t) {
|
|
863
|
-
let r = new Map();
|
|
864
|
-
for (let n of e) {
|
|
865
|
-
let i = n[t];
|
|
866
|
-
if (r.has(i)) throw new Error(`Duplicate ${t} ${JSON.stringify(i)}`);
|
|
867
|
-
r.set(i, n);
|
|
868
|
-
}
|
|
869
|
-
return r;
|
|
870
|
-
}
|
|
871
|
-
j.mapFromArray = to;
|
|
872
|
-
function ro() {
|
|
873
|
-
let e = Object.create(null);
|
|
874
|
-
return t => {
|
|
875
|
-
let r = JSON.stringify(t);
|
|
876
|
-
return e[r] ? !0 : (e[r] = !0, !1);
|
|
877
|
-
};
|
|
878
|
-
}
|
|
879
|
-
j.createAutoChecklist = ro;
|
|
880
|
-
function no(e, t) {
|
|
881
|
-
let r = [],
|
|
882
|
-
n = [];
|
|
883
|
-
for (let i of e) t(i) ? r.push(i) : n.push(i);
|
|
884
|
-
return [r, n];
|
|
885
|
-
}
|
|
886
|
-
j.partition = no;
|
|
887
|
-
function uo(e) {
|
|
888
|
-
return e === Math.floor(e);
|
|
889
|
-
}
|
|
890
|
-
j.isInt = uo;
|
|
891
|
-
function io(e, t) {
|
|
892
|
-
if (e === t) return 0;
|
|
893
|
-
let r = typeof e,
|
|
894
|
-
n = typeof t,
|
|
895
|
-
i = ["undefined", "object", "boolean", "number", "string"];
|
|
896
|
-
return r !== n ? i.indexOf(r) - i.indexOf(n) : r !== "string" ? Number(e) - Number(t) : e.localeCompare(t);
|
|
897
|
-
}
|
|
898
|
-
j.comparePrimitive = io;
|
|
899
|
-
function oo(e) {
|
|
900
|
-
return e === void 0 ? {} : e;
|
|
901
|
-
}
|
|
902
|
-
j.normalizeDefaultResult = oo;
|
|
903
|
-
function so(e, t) {
|
|
904
|
-
return e === !0 ? !0 : e === !1 ? {
|
|
905
|
-
value: t
|
|
906
|
-
} : e;
|
|
907
|
-
}
|
|
908
|
-
j.normalizeValidateResult = so;
|
|
909
|
-
function ao(e, t, r = !1) {
|
|
910
|
-
return e === !1 ? !1 : e === !0 ? r ? !0 : [{
|
|
911
|
-
value: t
|
|
912
|
-
}] : "value" in e ? [e] : e.length === 0 ? !1 : e;
|
|
913
|
-
}
|
|
914
|
-
j.normalizeDeprecatedResult = ao;
|
|
915
|
-
function cr(e, t) {
|
|
916
|
-
return typeof e == "string" || "key" in e ? {
|
|
917
|
-
from: t,
|
|
918
|
-
to: e
|
|
919
|
-
} : "from" in e ? {
|
|
920
|
-
from: e.from,
|
|
921
|
-
to: e.to
|
|
922
|
-
} : {
|
|
923
|
-
from: t,
|
|
924
|
-
to: e.to
|
|
925
|
-
};
|
|
926
|
-
}
|
|
927
|
-
j.normalizeTransferResult = cr;
|
|
928
|
-
function In(e, t) {
|
|
929
|
-
return e === void 0 ? [] : Array.isArray(e) ? e.map(r => cr(r, t)) : [cr(e, t)];
|
|
930
|
-
}
|
|
931
|
-
j.normalizeForwardResult = In;
|
|
932
|
-
function Do(e, t) {
|
|
933
|
-
let r = In(typeof e == "object" && "redirect" in e ? e.redirect : e, t);
|
|
934
|
-
return r.length === 0 ? {
|
|
935
|
-
remain: t,
|
|
936
|
-
redirect: r
|
|
937
|
-
} : typeof e == "object" && "remain" in e ? {
|
|
938
|
-
remain: e.remain,
|
|
939
|
-
redirect: r
|
|
940
|
-
} : {
|
|
941
|
-
redirect: r
|
|
942
|
-
};
|
|
943
|
-
}
|
|
944
|
-
j.normalizeRedirectResult = Do;
|
|
945
|
-
});
|
|
946
|
-
var jn = E(fr => {
|
|
947
|
-
|
|
948
|
-
Object.defineProperty(fr, "__esModule", {
|
|
949
|
-
value: !0
|
|
950
|
-
});
|
|
951
|
-
var co = ie(),
|
|
952
|
-
Ln = Ft(),
|
|
953
|
-
lr = class extends co.Schema {
|
|
954
|
-
constructor(t) {
|
|
955
|
-
super(t), this._choices = Ln.mapFromArray(t.choices.map(r => r && typeof r == "object" ? r : {
|
|
956
|
-
value: r
|
|
957
|
-
}), "value");
|
|
958
|
-
}
|
|
959
|
-
expected({
|
|
960
|
-
descriptor: t
|
|
961
|
-
}) {
|
|
962
|
-
let r = Array.from(this._choices.keys()).map(u => this._choices.get(u)).filter(u => !u.deprecated).map(u => u.value).sort(Ln.comparePrimitive).map(t.value),
|
|
963
|
-
n = r.slice(0, -2),
|
|
964
|
-
i = r.slice(-2);
|
|
965
|
-
return n.concat(i.join(" or ")).join(", ");
|
|
966
|
-
}
|
|
967
|
-
validate(t) {
|
|
968
|
-
return this._choices.has(t);
|
|
969
|
-
}
|
|
970
|
-
deprecated(t) {
|
|
971
|
-
let r = this._choices.get(t);
|
|
972
|
-
return r && r.deprecated ? {
|
|
973
|
-
value: t
|
|
974
|
-
} : !1;
|
|
975
|
-
}
|
|
976
|
-
forward(t) {
|
|
977
|
-
let r = this._choices.get(t);
|
|
978
|
-
return r ? r.forward : void 0;
|
|
979
|
-
}
|
|
980
|
-
redirect(t) {
|
|
981
|
-
let r = this._choices.get(t);
|
|
982
|
-
return r ? r.redirect : void 0;
|
|
983
|
-
}
|
|
984
|
-
};
|
|
985
|
-
fr.ChoiceSchema = lr;
|
|
986
|
-
});
|
|
987
|
-
var Fr = E(dr => {
|
|
988
|
-
|
|
989
|
-
Object.defineProperty(dr, "__esModule", {
|
|
990
|
-
value: !0
|
|
991
|
-
});
|
|
992
|
-
var lo = ie(),
|
|
993
|
-
pr = class extends lo.Schema {
|
|
994
|
-
expected() {
|
|
995
|
-
return "a number";
|
|
996
|
-
}
|
|
997
|
-
validate(t, r) {
|
|
998
|
-
return typeof t == "number";
|
|
999
|
-
}
|
|
1000
|
-
};
|
|
1001
|
-
dr.NumberSchema = pr;
|
|
1002
|
-
});
|
|
1003
|
-
var Yn = E(hr => {
|
|
1004
|
-
|
|
1005
|
-
Object.defineProperty(hr, "__esModule", {
|
|
1006
|
-
value: !0
|
|
1007
|
-
});
|
|
1008
|
-
var fo = Ft(),
|
|
1009
|
-
po = Fr(),
|
|
1010
|
-
mr = class extends po.NumberSchema {
|
|
1011
|
-
expected() {
|
|
1012
|
-
return "an integer";
|
|
1013
|
-
}
|
|
1014
|
-
validate(t, r) {
|
|
1015
|
-
return r.normalizeValidateResult(super.validate(t, r), t) === !0 && fo.isInt(t);
|
|
1016
|
-
}
|
|
1017
|
-
};
|
|
1018
|
-
hr.IntegerSchema = mr;
|
|
1019
|
-
});
|
|
1020
|
-
var Mn = E(Cr => {
|
|
1021
|
-
|
|
1022
|
-
Object.defineProperty(Cr, "__esModule", {
|
|
1023
|
-
value: !0
|
|
1024
|
-
});
|
|
1025
|
-
var Fo = ie(),
|
|
1026
|
-
Er = class extends Fo.Schema {
|
|
1027
|
-
expected() {
|
|
1028
|
-
return "a string";
|
|
1029
|
-
}
|
|
1030
|
-
validate(t) {
|
|
1031
|
-
return typeof t == "string";
|
|
1032
|
-
}
|
|
1033
|
-
};
|
|
1034
|
-
Cr.StringSchema = Er;
|
|
1035
|
-
});
|
|
1036
|
-
var qn = E(Q => {
|
|
1037
|
-
|
|
1038
|
-
Object.defineProperty(Q, "__esModule", {
|
|
1039
|
-
value: !0
|
|
1040
|
-
});
|
|
1041
|
-
var ce = (ue(), $(ne));
|
|
1042
|
-
ce.__exportStar(vn(), Q);
|
|
1043
|
-
ce.__exportStar(Tn(), Q);
|
|
1044
|
-
ce.__exportStar(Pn(), Q);
|
|
1045
|
-
ce.__exportStar(Rn(), Q);
|
|
1046
|
-
ce.__exportStar(jn(), Q);
|
|
1047
|
-
ce.__exportStar(Yn(), Q);
|
|
1048
|
-
ce.__exportStar(Fr(), Q);
|
|
1049
|
-
ce.__exportStar(Mn(), Q);
|
|
1050
|
-
});
|
|
1051
|
-
var $n = E(Ae => {
|
|
1052
|
-
|
|
1053
|
-
Object.defineProperty(Ae, "__esModule", {
|
|
1054
|
-
value: !0
|
|
1055
|
-
});
|
|
1056
|
-
var mo = qt(),
|
|
1057
|
-
ho = Wt(),
|
|
1058
|
-
Eo = Jt(),
|
|
1059
|
-
Co = Qt();
|
|
1060
|
-
Ae.defaultDescriptor = mo.apiDescriptor;
|
|
1061
|
-
Ae.defaultUnknownHandler = Co.levenUnknownHandler;
|
|
1062
|
-
Ae.defaultInvalidHandler = Eo.commonInvalidHandler;
|
|
1063
|
-
Ae.defaultDeprecatedHandler = ho.commonDeprecatedHandler;
|
|
1064
|
-
});
|
|
1065
|
-
var Vn = E(Et => {
|
|
1066
|
-
|
|
1067
|
-
Object.defineProperty(Et, "__esModule", {
|
|
1068
|
-
value: !0
|
|
1069
|
-
});
|
|
1070
|
-
var mt = $n(),
|
|
1071
|
-
M = Ft();
|
|
1072
|
-
Et.normalize = (e, t, r) => new ht(t, r).normalize(e);
|
|
1073
|
-
var ht = class {
|
|
1074
|
-
constructor(t, r) {
|
|
1075
|
-
let {
|
|
1076
|
-
logger: n = console,
|
|
1077
|
-
descriptor: i = mt.defaultDescriptor,
|
|
1078
|
-
unknown: u = mt.defaultUnknownHandler,
|
|
1079
|
-
invalid: o = mt.defaultInvalidHandler,
|
|
1080
|
-
deprecated: s = mt.defaultDeprecatedHandler
|
|
1081
|
-
} = r || {};
|
|
1082
|
-
this._utils = {
|
|
1083
|
-
descriptor: i,
|
|
1084
|
-
logger: n || {
|
|
1085
|
-
warn: () => {}
|
|
1086
|
-
},
|
|
1087
|
-
schemas: M.recordFromArray(t, "name"),
|
|
1088
|
-
normalizeDefaultResult: M.normalizeDefaultResult,
|
|
1089
|
-
normalizeDeprecatedResult: M.normalizeDeprecatedResult,
|
|
1090
|
-
normalizeForwardResult: M.normalizeForwardResult,
|
|
1091
|
-
normalizeRedirectResult: M.normalizeRedirectResult,
|
|
1092
|
-
normalizeValidateResult: M.normalizeValidateResult
|
|
1093
|
-
}, this._unknownHandler = u, this._invalidHandler = o, this._deprecatedHandler = s, this.cleanHistory();
|
|
1094
|
-
}
|
|
1095
|
-
cleanHistory() {
|
|
1096
|
-
this._hasDeprecationWarned = M.createAutoChecklist();
|
|
1097
|
-
}
|
|
1098
|
-
normalize(t) {
|
|
1099
|
-
let r = {},
|
|
1100
|
-
n = [t],
|
|
1101
|
-
i = () => {
|
|
1102
|
-
for (; n.length !== 0;) {
|
|
1103
|
-
let u = n.shift(),
|
|
1104
|
-
o = this._applyNormalization(u, r);
|
|
1105
|
-
n.push(...o);
|
|
1106
|
-
}
|
|
1107
|
-
};
|
|
1108
|
-
i();
|
|
1109
|
-
for (let u of Object.keys(this._utils.schemas)) {
|
|
1110
|
-
let o = this._utils.schemas[u];
|
|
1111
|
-
if (!(u in r)) {
|
|
1112
|
-
let s = M.normalizeDefaultResult(o.default(this._utils));
|
|
1113
|
-
"value" in s && n.push({
|
|
1114
|
-
[u]: s.value
|
|
1115
|
-
});
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
i();
|
|
1119
|
-
for (let u of Object.keys(this._utils.schemas)) {
|
|
1120
|
-
let o = this._utils.schemas[u];
|
|
1121
|
-
u in r && (r[u] = o.postprocess(r[u], this._utils));
|
|
1122
|
-
}
|
|
1123
|
-
return r;
|
|
1124
|
-
}
|
|
1125
|
-
_applyNormalization(t, r) {
|
|
1126
|
-
let n = [],
|
|
1127
|
-
[i, u] = M.partition(Object.keys(t), o => o in this._utils.schemas);
|
|
1128
|
-
for (let o of i) {
|
|
1129
|
-
let s = this._utils.schemas[o],
|
|
1130
|
-
a = s.preprocess(t[o], this._utils),
|
|
1131
|
-
D = M.normalizeValidateResult(s.validate(a, this._utils), a);
|
|
1132
|
-
if (D !== !0) {
|
|
1133
|
-
let {
|
|
1134
|
-
value: f
|
|
1135
|
-
} = D,
|
|
1136
|
-
p = this._invalidHandler(o, f, this._utils);
|
|
1137
|
-
throw typeof p == "string" ? new Error(p) : p;
|
|
1138
|
-
}
|
|
1139
|
-
let c = ({
|
|
1140
|
-
from: f,
|
|
1141
|
-
to: p
|
|
1142
|
-
}) => {
|
|
1143
|
-
n.push(typeof p == "string" ? {
|
|
1144
|
-
[p]: f
|
|
1145
|
-
} : {
|
|
1146
|
-
[p.key]: p.value
|
|
1147
|
-
});
|
|
1148
|
-
},
|
|
1149
|
-
d = ({
|
|
1150
|
-
value: f,
|
|
1151
|
-
redirectTo: p
|
|
1152
|
-
}) => {
|
|
1153
|
-
let m = M.normalizeDeprecatedResult(s.deprecated(f, this._utils), a, !0);
|
|
1154
|
-
if (m !== !1) if (m === !0) this._hasDeprecationWarned(o) || this._utils.logger.warn(this._deprecatedHandler(o, p, this._utils));else for (let {
|
|
1155
|
-
value: h
|
|
1156
|
-
} of m) {
|
|
1157
|
-
let C = {
|
|
1158
|
-
key: o,
|
|
1159
|
-
value: h
|
|
1160
|
-
};
|
|
1161
|
-
if (!this._hasDeprecationWarned(C)) {
|
|
1162
|
-
let g = typeof p == "string" ? {
|
|
1163
|
-
key: p,
|
|
1164
|
-
value: h
|
|
1165
|
-
} : p;
|
|
1166
|
-
this._utils.logger.warn(this._deprecatedHandler(C, g, this._utils));
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
};
|
|
1170
|
-
M.normalizeForwardResult(s.forward(a, this._utils), a).forEach(c);
|
|
1171
|
-
let F = M.normalizeRedirectResult(s.redirect(a, this._utils), a);
|
|
1172
|
-
if (F.redirect.forEach(c), "remain" in F) {
|
|
1173
|
-
let f = F.remain;
|
|
1174
|
-
r[o] = o in r ? s.overlap(r[o], f, this._utils) : f, d({
|
|
1175
|
-
value: f
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
for (let {
|
|
1179
|
-
from: f,
|
|
1180
|
-
to: p
|
|
1181
|
-
} of F.redirect) d({
|
|
1182
|
-
value: f,
|
|
1183
|
-
redirectTo: p
|
|
1184
|
-
});
|
|
1185
|
-
}
|
|
1186
|
-
for (let o of u) {
|
|
1187
|
-
let s = t[o],
|
|
1188
|
-
a = this._unknownHandler(o, s, this._utils);
|
|
1189
|
-
if (a) for (let D of Object.keys(a)) {
|
|
1190
|
-
let c = {
|
|
1191
|
-
[D]: a[D]
|
|
1192
|
-
};
|
|
1193
|
-
D in this._utils.schemas ? n.push(c) : Object.assign(r, c);
|
|
1194
|
-
}
|
|
1195
|
-
}
|
|
1196
|
-
return n;
|
|
1197
|
-
}
|
|
1198
|
-
};
|
|
1199
|
-
Et.Normalizer = ht;
|
|
1200
|
-
});
|
|
1201
|
-
var zn = E(he => {
|
|
1202
|
-
|
|
1203
|
-
Object.defineProperty(he, "__esModule", {
|
|
1204
|
-
value: !0
|
|
1205
|
-
});
|
|
1206
|
-
var Ue = (ue(), $(ne));
|
|
1207
|
-
Ue.__exportStar(gn(), he);
|
|
1208
|
-
Ue.__exportStar(kn(), he);
|
|
1209
|
-
Ue.__exportStar(qn(), he);
|
|
1210
|
-
Ue.__exportStar(Vn(), he);
|
|
1211
|
-
Ue.__exportStar(ie(), he);
|
|
1212
|
-
});
|
|
1213
|
-
var Xn = {};
|
|
1214
|
-
ge(Xn, {
|
|
1215
|
-
getChalk: () => Oo,
|
|
1216
|
-
shouldHighlight: () => wo
|
|
1217
|
-
});
|
|
1218
|
-
var wo,
|
|
1219
|
-
Oo,
|
|
1220
|
-
Zn = Ot(() => {
|
|
1221
|
-
We();
|
|
1222
|
-
wo = () => !1, Oo = () => Vt;
|
|
1223
|
-
});
|
|
1224
|
-
var ru = E(gt => {
|
|
1225
|
-
|
|
1226
|
-
Object.defineProperty(gt, "__esModule", {
|
|
1227
|
-
value: !0
|
|
1228
|
-
});
|
|
1229
|
-
gt.codeFrameColumns = tu;
|
|
1230
|
-
gt.default = vo;
|
|
1231
|
-
var xr = (Zn(), $(Xn)),
|
|
1232
|
-
Qn = !1;
|
|
1233
|
-
function ko(e) {
|
|
1234
|
-
return {
|
|
1235
|
-
gutter: e.grey,
|
|
1236
|
-
marker: e.red.bold,
|
|
1237
|
-
message: e.red.bold
|
|
1238
|
-
};
|
|
1239
|
-
}
|
|
1240
|
-
var eu = /\r\n|[\n\r\u2028\u2029]/;
|
|
1241
|
-
function So(e, t, r) {
|
|
1242
|
-
let n = Object.assign({
|
|
1243
|
-
column: 0,
|
|
1244
|
-
line: -1
|
|
1245
|
-
}, e.start),
|
|
1246
|
-
i = Object.assign({}, n, e.end),
|
|
1247
|
-
{
|
|
1248
|
-
linesAbove: u = 2,
|
|
1249
|
-
linesBelow: o = 3
|
|
1250
|
-
} = r || {},
|
|
1251
|
-
s = n.line,
|
|
1252
|
-
a = n.column,
|
|
1253
|
-
D = i.line,
|
|
1254
|
-
c = i.column,
|
|
1255
|
-
d = Math.max(s - (u + 1), 0),
|
|
1256
|
-
l = Math.min(t.length, D + o);
|
|
1257
|
-
s === -1 && (d = 0), D === -1 && (l = t.length);
|
|
1258
|
-
let F = D - s,
|
|
1259
|
-
f = {};
|
|
1260
|
-
if (F) for (let p = 0; p <= F; p++) {
|
|
1261
|
-
let m = p + s;
|
|
1262
|
-
if (!a) f[m] = !0;else if (p === 0) {
|
|
1263
|
-
let h = t[m - 1].length;
|
|
1264
|
-
f[m] = [a, h - a + 1];
|
|
1265
|
-
} else if (p === F) f[m] = [0, c];else {
|
|
1266
|
-
let h = t[m - p].length;
|
|
1267
|
-
f[m] = [0, h];
|
|
1268
|
-
}
|
|
1269
|
-
} else a === c ? a ? f[s] = [a, 0] : f[s] = !0 : f[s] = [a, c - a];
|
|
1270
|
-
return {
|
|
1271
|
-
start: d,
|
|
1272
|
-
end: l,
|
|
1273
|
-
markerLines: f
|
|
1274
|
-
};
|
|
1275
|
-
}
|
|
1276
|
-
function tu(e, t, r = {}) {
|
|
1277
|
-
let n = (r.highlightCode || r.forceColor) && (0, xr.shouldHighlight)(r),
|
|
1278
|
-
i = (0, xr.getChalk)(r),
|
|
1279
|
-
u = ko(i),
|
|
1280
|
-
o = (p, m) => n ? p(m) : m,
|
|
1281
|
-
s = e.split(eu),
|
|
1282
|
-
{
|
|
1283
|
-
start: a,
|
|
1284
|
-
end: D,
|
|
1285
|
-
markerLines: c
|
|
1286
|
-
} = So(t, s, r),
|
|
1287
|
-
d = t.start && typeof t.start.column == "number",
|
|
1288
|
-
l = String(D).length,
|
|
1289
|
-
f = (n ? (0, xr.default)(e, r) : e).split(eu, D).slice(a, D).map((p, m) => {
|
|
1290
|
-
let h = a + 1 + m,
|
|
1291
|
-
g = ` ${` ${h}`.slice(-l)} |`,
|
|
1292
|
-
y = c[h],
|
|
1293
|
-
b = !c[h + 1];
|
|
1294
|
-
if (y) {
|
|
1295
|
-
let se = "";
|
|
1296
|
-
if (Array.isArray(y)) {
|
|
1297
|
-
let G = p.slice(0, Math.max(y[0] - 1, 0)).replace(/[^\t]/g, " "),
|
|
1298
|
-
ae = y[1] || 1;
|
|
1299
|
-
se = [`
|
|
1300
|
-
`, o(u.gutter, g.replace(/\d/g, " ")), " ", G, o(u.marker, "^").repeat(ae)].join(""), b && r.message && (se += " " + o(u.message, r.message));
|
|
1301
|
-
}
|
|
1302
|
-
return [o(u.marker, ">"), o(u.gutter, g), p.length > 0 ? ` ${p}` : "", se].join("");
|
|
1303
|
-
} else return ` ${o(u.gutter, g)}${p.length > 0 ? ` ${p}` : ""}`;
|
|
1304
|
-
}).join(`
|
|
1305
|
-
`);
|
|
1306
|
-
return r.message && !d && (f = `${" ".repeat(l + 1)}${r.message}
|
|
1307
|
-
${f}`), n ? i.reset(f) : f;
|
|
1308
|
-
}
|
|
1309
|
-
function vo(e, t, r, n = {}) {
|
|
1310
|
-
if (!Qn) {
|
|
1311
|
-
Qn = !0;
|
|
1312
|
-
let u = "Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";
|
|
1313
|
-
{
|
|
1314
|
-
let o = new Error(u);
|
|
1315
|
-
o.name = "DeprecationWarning", console.warn(new Error(u));
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
return r = Math.max(r, 0), tu(e, {
|
|
1319
|
-
start: {
|
|
1320
|
-
column: r,
|
|
1321
|
-
line: t
|
|
1322
|
-
}
|
|
1323
|
-
}, n);
|
|
1324
|
-
}
|
|
1325
|
-
});
|
|
1326
|
-
var Lr = {};
|
|
1327
|
-
ge(Lr, {
|
|
1328
|
-
__debug: () => xs,
|
|
1329
|
-
check: () => ys,
|
|
1330
|
-
doc: () => wt,
|
|
1331
|
-
format: () => zu,
|
|
1332
|
-
formatWithCursor: () => Vu,
|
|
1333
|
-
getSupportInfo: () => _s,
|
|
1334
|
-
util: () => Bt,
|
|
1335
|
-
version: () => $u
|
|
1336
|
-
});
|
|
1337
|
-
var Xu = (e, t, r, n) => {
|
|
1338
|
-
if (!(e && t == null)) return t.replaceAll ? t.replaceAll(r, n) : r.global ? t.replace(r, n) : t.split(r).join(n);
|
|
1339
|
-
},
|
|
1340
|
-
De = Xu;
|
|
1341
|
-
var wu = kt($r(), 1);
|
|
1342
|
-
var U = "string",
|
|
1343
|
-
V = "array",
|
|
1344
|
-
K = "cursor",
|
|
1345
|
-
v = "indent",
|
|
1346
|
-
T = "align",
|
|
1347
|
-
N = "trim",
|
|
1348
|
-
A = "group",
|
|
1349
|
-
w = "fill",
|
|
1350
|
-
B = "if-break",
|
|
1351
|
-
P = "indent-if-break",
|
|
1352
|
-
R = "line-suffix",
|
|
1353
|
-
I = "line-suffix-boundary",
|
|
1354
|
-
x = "line",
|
|
1355
|
-
k = "label",
|
|
1356
|
-
O = "break-parent",
|
|
1357
|
-
tt = new Set([K, v, T, N, A, w, B, P, R, I, x, k, O]);
|
|
1358
|
-
function ni(e) {
|
|
1359
|
-
if (typeof e == "string") return U;
|
|
1360
|
-
if (Array.isArray(e)) return V;
|
|
1361
|
-
if (!e) return;
|
|
1362
|
-
let {
|
|
1363
|
-
type: t
|
|
1364
|
-
} = e;
|
|
1365
|
-
if (tt.has(t)) return t;
|
|
1366
|
-
}
|
|
1367
|
-
var H = ni;
|
|
1368
|
-
var ui = e => new Intl.ListFormat("en-US", {
|
|
1369
|
-
type: "disjunction"
|
|
1370
|
-
}).format(e);
|
|
1371
|
-
function ii(e) {
|
|
1372
|
-
let t = e === null ? "null" : typeof e;
|
|
1373
|
-
if (t !== "string" && t !== "object") return `Unexpected doc '${t}',
|
|
1374
|
-
Expected it to be 'string' or 'object'.`;
|
|
1375
|
-
if (H(e)) throw new Error("doc is valid.");
|
|
1376
|
-
let r = Object.prototype.toString.call(e);
|
|
1377
|
-
if (r !== "[object Object]") return `Unexpected doc '${r}'.`;
|
|
1378
|
-
let n = ui([...tt].map(i => `'${i}'`));
|
|
1379
|
-
return `Unexpected doc.type '${e.type}'.
|
|
1380
|
-
Expected it to be ${n}.`;
|
|
1381
|
-
}
|
|
1382
|
-
var Tt = class extends Error {
|
|
1383
|
-
name = "InvalidDocError";
|
|
1384
|
-
constructor(t) {
|
|
1385
|
-
super(ii(t)), this.doc = t;
|
|
1386
|
-
}
|
|
1387
|
-
},
|
|
1388
|
-
te = Tt;
|
|
1389
|
-
var Vr = {};
|
|
1390
|
-
function oi(e, t, r, n) {
|
|
1391
|
-
let i = [e];
|
|
1392
|
-
for (; i.length > 0;) {
|
|
1393
|
-
let u = i.pop();
|
|
1394
|
-
if (u === Vr) {
|
|
1395
|
-
r(i.pop());
|
|
1396
|
-
continue;
|
|
1397
|
-
}
|
|
1398
|
-
r && i.push(u, Vr);
|
|
1399
|
-
let o = H(u);
|
|
1400
|
-
if (!o) throw new te(u);
|
|
1401
|
-
if ((t == null ? void 0 : t(u)) !== !1) switch (o) {
|
|
1402
|
-
case V:
|
|
1403
|
-
case w:
|
|
1404
|
-
{
|
|
1405
|
-
let s = o === V ? u : u.parts;
|
|
1406
|
-
for (let a = s.length, D = a - 1; D >= 0; --D) i.push(s[D]);
|
|
1407
|
-
break;
|
|
1408
|
-
}
|
|
1409
|
-
case B:
|
|
1410
|
-
i.push(u.flatContents, u.breakContents);
|
|
1411
|
-
break;
|
|
1412
|
-
case A:
|
|
1413
|
-
if (n && u.expandedStates) for (let s = u.expandedStates.length, a = s - 1; a >= 0; --a) i.push(u.expandedStates[a]);else i.push(u.contents);
|
|
1414
|
-
break;
|
|
1415
|
-
case T:
|
|
1416
|
-
case v:
|
|
1417
|
-
case P:
|
|
1418
|
-
case k:
|
|
1419
|
-
case R:
|
|
1420
|
-
i.push(u.contents);
|
|
1421
|
-
break;
|
|
1422
|
-
case U:
|
|
1423
|
-
case K:
|
|
1424
|
-
case N:
|
|
1425
|
-
case I:
|
|
1426
|
-
case x:
|
|
1427
|
-
case O:
|
|
1428
|
-
break;
|
|
1429
|
-
default:
|
|
1430
|
-
throw new te(u);
|
|
1431
|
-
}
|
|
1432
|
-
}
|
|
1433
|
-
}
|
|
1434
|
-
var Te = oi;
|
|
1435
|
-
var zr = () => {},
|
|
1436
|
-
rt = zr;
|
|
1437
|
-
function Fe(e) {
|
|
1438
|
-
return {
|
|
1439
|
-
type: v,
|
|
1440
|
-
contents: e
|
|
1441
|
-
};
|
|
1442
|
-
}
|
|
1443
|
-
function de(e, t) {
|
|
1444
|
-
return {
|
|
1445
|
-
type: T,
|
|
1446
|
-
contents: t,
|
|
1447
|
-
n: e
|
|
1448
|
-
};
|
|
1449
|
-
}
|
|
1450
|
-
function Nt(e, t = {}) {
|
|
1451
|
-
return rt(t.expandedStates), {
|
|
1452
|
-
type: A,
|
|
1453
|
-
id: t.id,
|
|
1454
|
-
contents: e,
|
|
1455
|
-
break: !!t.shouldBreak,
|
|
1456
|
-
expandedStates: t.expandedStates
|
|
1457
|
-
};
|
|
1458
|
-
}
|
|
1459
|
-
function Wr(e) {
|
|
1460
|
-
return de(Number.NEGATIVE_INFINITY, e);
|
|
1461
|
-
}
|
|
1462
|
-
function Gr(e) {
|
|
1463
|
-
return de({
|
|
1464
|
-
type: "root"
|
|
1465
|
-
}, e);
|
|
1466
|
-
}
|
|
1467
|
-
function Ur(e) {
|
|
1468
|
-
return de(-1, e);
|
|
1469
|
-
}
|
|
1470
|
-
function Kr(e, t) {
|
|
1471
|
-
return Nt(e[0], {
|
|
1472
|
-
...t,
|
|
1473
|
-
expandedStates: e
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
function nt(e) {
|
|
1477
|
-
return {
|
|
1478
|
-
type: w,
|
|
1479
|
-
parts: e
|
|
1480
|
-
};
|
|
1481
|
-
}
|
|
1482
|
-
function Hr(e, t = "", r = {}) {
|
|
1483
|
-
return {
|
|
1484
|
-
type: B,
|
|
1485
|
-
breakContents: e,
|
|
1486
|
-
flatContents: t,
|
|
1487
|
-
groupId: r.groupId
|
|
1488
|
-
};
|
|
1489
|
-
}
|
|
1490
|
-
function Jr(e, t) {
|
|
1491
|
-
return {
|
|
1492
|
-
type: P,
|
|
1493
|
-
contents: e,
|
|
1494
|
-
groupId: t.groupId,
|
|
1495
|
-
negate: t.negate
|
|
1496
|
-
};
|
|
1497
|
-
}
|
|
1498
|
-
function Ne(e) {
|
|
1499
|
-
return {
|
|
1500
|
-
type: R,
|
|
1501
|
-
contents: e
|
|
1502
|
-
};
|
|
1503
|
-
}
|
|
1504
|
-
var Xr = {
|
|
1505
|
-
type: I
|
|
1506
|
-
},
|
|
1507
|
-
_e = {
|
|
1508
|
-
type: O
|
|
1509
|
-
},
|
|
1510
|
-
Zr = {
|
|
1511
|
-
type: N
|
|
1512
|
-
},
|
|
1513
|
-
Pe = {
|
|
1514
|
-
type: x,
|
|
1515
|
-
hard: !0
|
|
1516
|
-
},
|
|
1517
|
-
Pt = {
|
|
1518
|
-
type: x,
|
|
1519
|
-
hard: !0,
|
|
1520
|
-
literal: !0
|
|
1521
|
-
},
|
|
1522
|
-
ut = {
|
|
1523
|
-
type: x
|
|
1524
|
-
},
|
|
1525
|
-
Qr = {
|
|
1526
|
-
type: x,
|
|
1527
|
-
soft: !0
|
|
1528
|
-
},
|
|
1529
|
-
X = [Pe, _e],
|
|
1530
|
-
it = [Pt, _e],
|
|
1531
|
-
Re = {
|
|
1532
|
-
type: K
|
|
1533
|
-
};
|
|
1534
|
-
function Ie(e, t) {
|
|
1535
|
-
let r = [];
|
|
1536
|
-
for (let n = 0; n < t.length; n++) n !== 0 && r.push(e), r.push(t[n]);
|
|
1537
|
-
return r;
|
|
1538
|
-
}
|
|
1539
|
-
function ot(e, t, r) {
|
|
1540
|
-
let n = e;
|
|
1541
|
-
if (t > 0) {
|
|
1542
|
-
for (let i = 0; i < Math.floor(t / r); ++i) n = Fe(n);
|
|
1543
|
-
n = de(t % r, n), n = de(Number.NEGATIVE_INFINITY, n);
|
|
1544
|
-
}
|
|
1545
|
-
return n;
|
|
1546
|
-
}
|
|
1547
|
-
function en(e, t) {
|
|
1548
|
-
return e ? {
|
|
1549
|
-
type: k,
|
|
1550
|
-
label: e,
|
|
1551
|
-
contents: t
|
|
1552
|
-
} : t;
|
|
1553
|
-
}
|
|
1554
|
-
var si = (e, t, r) => {
|
|
1555
|
-
if (!(e && t == null)) return Array.isArray(t) || typeof t == "string" ? t[r < 0 ? t.length + r : r] : t.at(r);
|
|
1556
|
-
},
|
|
1557
|
-
_ = si;
|
|
1558
|
-
function tn(e) {
|
|
1559
|
-
let t = e.indexOf("\r");
|
|
1560
|
-
return t >= 0 ? e.charAt(t + 1) === `
|
|
1561
|
-
` ? "crlf" : "cr" : "lf";
|
|
1562
|
-
}
|
|
1563
|
-
function Le(e) {
|
|
1564
|
-
switch (e) {
|
|
1565
|
-
case "cr":
|
|
1566
|
-
return "\r";
|
|
1567
|
-
case "crlf":
|
|
1568
|
-
return `\r
|
|
1569
|
-
`;
|
|
1570
|
-
default:
|
|
1571
|
-
return `
|
|
1572
|
-
`;
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
function Rt(e, t) {
|
|
1576
|
-
let r;
|
|
1577
|
-
switch (t) {
|
|
1578
|
-
case `
|
|
1579
|
-
`:
|
|
1580
|
-
r = /\n/g;
|
|
1581
|
-
break;
|
|
1582
|
-
case "\r":
|
|
1583
|
-
r = /\r/g;
|
|
1584
|
-
break;
|
|
1585
|
-
case `\r
|
|
1586
|
-
`:
|
|
1587
|
-
r = /\r\n/g;
|
|
1588
|
-
break;
|
|
1589
|
-
default:
|
|
1590
|
-
throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`);
|
|
1591
|
-
}
|
|
1592
|
-
let n = e.match(r);
|
|
1593
|
-
return n ? n.length : 0;
|
|
1594
|
-
}
|
|
1595
|
-
function rn(e) {
|
|
1596
|
-
return De(!1, e, /\r\n?/g, `
|
|
1597
|
-
`);
|
|
1598
|
-
}
|
|
1599
|
-
var nn = () => /[#*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;
|
|
1600
|
-
var un = {
|
|
1601
|
-
eastAsianWidth(e) {
|
|
1602
|
-
var t = e.charCodeAt(0),
|
|
1603
|
-
r = e.length == 2 ? e.charCodeAt(1) : 0,
|
|
1604
|
-
n = t;
|
|
1605
|
-
return 55296 <= t && t <= 56319 && 56320 <= r && r <= 57343 && (t &= 1023, r &= 1023, n = t << 10 | r, n += 65536), n == 12288 || 65281 <= n && n <= 65376 || 65504 <= n && n <= 65510 ? "F" : 4352 <= n && n <= 4447 || 4515 <= n && n <= 4519 || 4602 <= n && n <= 4607 || 9001 <= n && n <= 9002 || 11904 <= n && n <= 11929 || 11931 <= n && n <= 12019 || 12032 <= n && n <= 12245 || 12272 <= n && n <= 12283 || 12289 <= n && n <= 12350 || 12353 <= n && n <= 12438 || 12441 <= n && n <= 12543 || 12549 <= n && n <= 12589 || 12593 <= n && n <= 12686 || 12688 <= n && n <= 12730 || 12736 <= n && n <= 12771 || 12784 <= n && n <= 12830 || 12832 <= n && n <= 12871 || 12880 <= n && n <= 13054 || 13056 <= n && n <= 19903 || 19968 <= n && n <= 42124 || 42128 <= n && n <= 42182 || 43360 <= n && n <= 43388 || 44032 <= n && n <= 55203 || 55216 <= n && n <= 55238 || 55243 <= n && n <= 55291 || 63744 <= n && n <= 64255 || 65040 <= n && n <= 65049 || 65072 <= n && n <= 65106 || 65108 <= n && n <= 65126 || 65128 <= n && n <= 65131 || 110592 <= n && n <= 110593 || 127488 <= n && n <= 127490 || 127504 <= n && n <= 127546 || 127552 <= n && n <= 127560 || 127568 <= n && n <= 127569 || 131072 <= n && n <= 194367 || 177984 <= n && n <= 196605 || 196608 <= n && n <= 262141 ? "W" : "N";
|
|
1606
|
-
}
|
|
1607
|
-
};
|
|
1608
|
-
var ai = /[^\x20-\x7F]/;
|
|
1609
|
-
function Di(e) {
|
|
1610
|
-
if (!e) return 0;
|
|
1611
|
-
if (!ai.test(e)) return e.length;
|
|
1612
|
-
e = e.replace(nn(), " ");
|
|
1613
|
-
let t = 0;
|
|
1614
|
-
for (let r of e) {
|
|
1615
|
-
let n = r.codePointAt(0);
|
|
1616
|
-
if (n <= 31 || n >= 127 && n <= 159 || n >= 768 && n <= 879) continue;
|
|
1617
|
-
let i = un.eastAsianWidth(r);
|
|
1618
|
-
t += i === "F" || i === "W" ? 2 : 1;
|
|
1619
|
-
}
|
|
1620
|
-
return t;
|
|
1621
|
-
}
|
|
1622
|
-
var je = Di;
|
|
1623
|
-
var an = e => {
|
|
1624
|
-
if (Array.isArray(e)) return e;
|
|
1625
|
-
if (e.type !== w) throw new Error(`Expect doc to be 'array' or '${w}'.`);
|
|
1626
|
-
return e.parts;
|
|
1627
|
-
};
|
|
1628
|
-
function Me(e, t) {
|
|
1629
|
-
if (typeof e == "string") return t(e);
|
|
1630
|
-
let r = new Map();
|
|
1631
|
-
return n(e);
|
|
1632
|
-
function n(u) {
|
|
1633
|
-
if (r.has(u)) return r.get(u);
|
|
1634
|
-
let o = i(u);
|
|
1635
|
-
return r.set(u, o), o;
|
|
1636
|
-
}
|
|
1637
|
-
function i(u) {
|
|
1638
|
-
switch (H(u)) {
|
|
1639
|
-
case V:
|
|
1640
|
-
return t(u.map(n));
|
|
1641
|
-
case w:
|
|
1642
|
-
return t({
|
|
1643
|
-
...u,
|
|
1644
|
-
parts: u.parts.map(n)
|
|
1645
|
-
});
|
|
1646
|
-
case B:
|
|
1647
|
-
return t({
|
|
1648
|
-
...u,
|
|
1649
|
-
breakContents: n(u.breakContents),
|
|
1650
|
-
flatContents: n(u.flatContents)
|
|
1651
|
-
});
|
|
1652
|
-
case A:
|
|
1653
|
-
{
|
|
1654
|
-
let {
|
|
1655
|
-
expandedStates: o,
|
|
1656
|
-
contents: s
|
|
1657
|
-
} = u;
|
|
1658
|
-
return o ? (o = o.map(n), s = o[0]) : s = n(s), t({
|
|
1659
|
-
...u,
|
|
1660
|
-
contents: s,
|
|
1661
|
-
expandedStates: o
|
|
1662
|
-
});
|
|
1663
|
-
}
|
|
1664
|
-
case T:
|
|
1665
|
-
case v:
|
|
1666
|
-
case P:
|
|
1667
|
-
case k:
|
|
1668
|
-
case R:
|
|
1669
|
-
return t({
|
|
1670
|
-
...u,
|
|
1671
|
-
contents: n(u.contents)
|
|
1672
|
-
});
|
|
1673
|
-
case U:
|
|
1674
|
-
case K:
|
|
1675
|
-
case N:
|
|
1676
|
-
case I:
|
|
1677
|
-
case x:
|
|
1678
|
-
case O:
|
|
1679
|
-
return t(u);
|
|
1680
|
-
default:
|
|
1681
|
-
throw new te(u);
|
|
1682
|
-
}
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
function st(e, t, r) {
|
|
1686
|
-
let n = r,
|
|
1687
|
-
i = !1;
|
|
1688
|
-
function u(o) {
|
|
1689
|
-
if (i) return !1;
|
|
1690
|
-
let s = t(o);
|
|
1691
|
-
s !== void 0 && (i = !0, n = s);
|
|
1692
|
-
}
|
|
1693
|
-
return Te(e, u), n;
|
|
1694
|
-
}
|
|
1695
|
-
function ci(e) {
|
|
1696
|
-
if (e.type === A && e.break || e.type === x && e.hard || e.type === O) return !0;
|
|
1697
|
-
}
|
|
1698
|
-
function Dn(e) {
|
|
1699
|
-
return st(e, ci, !1);
|
|
1700
|
-
}
|
|
1701
|
-
function on(e) {
|
|
1702
|
-
if (e.length > 0) {
|
|
1703
|
-
let t = _(!1, e, -1);
|
|
1704
|
-
!t.expandedStates && !t.break && (t.break = "propagated");
|
|
1705
|
-
}
|
|
1706
|
-
return null;
|
|
1707
|
-
}
|
|
1708
|
-
function cn(e) {
|
|
1709
|
-
let t = new Set(),
|
|
1710
|
-
r = [];
|
|
1711
|
-
function n(u) {
|
|
1712
|
-
if (u.type === O && on(r), u.type === A) {
|
|
1713
|
-
if (r.push(u), t.has(u)) return !1;
|
|
1714
|
-
t.add(u);
|
|
1715
|
-
}
|
|
1716
|
-
}
|
|
1717
|
-
function i(u) {
|
|
1718
|
-
u.type === A && r.pop().break && on(r);
|
|
1719
|
-
}
|
|
1720
|
-
Te(e, n, i, !0);
|
|
1721
|
-
}
|
|
1722
|
-
function li(e) {
|
|
1723
|
-
return e.type === x && !e.hard ? e.soft ? "" : " " : e.type === B ? e.flatContents : e;
|
|
1724
|
-
}
|
|
1725
|
-
function ln(e) {
|
|
1726
|
-
return Me(e, li);
|
|
1727
|
-
}
|
|
1728
|
-
function sn(e) {
|
|
1729
|
-
for (e = [...e]; e.length >= 2 && _(!1, e, -2).type === x && _(!1, e, -1).type === O;) e.length -= 2;
|
|
1730
|
-
if (e.length > 0) {
|
|
1731
|
-
let t = Ye(_(!1, e, -1));
|
|
1732
|
-
e[e.length - 1] = t;
|
|
1733
|
-
}
|
|
1734
|
-
return e;
|
|
1735
|
-
}
|
|
1736
|
-
function Ye(e) {
|
|
1737
|
-
switch (H(e)) {
|
|
1738
|
-
case T:
|
|
1739
|
-
case v:
|
|
1740
|
-
case P:
|
|
1741
|
-
case A:
|
|
1742
|
-
case R:
|
|
1743
|
-
case k:
|
|
1744
|
-
{
|
|
1745
|
-
let t = Ye(e.contents);
|
|
1746
|
-
return {
|
|
1747
|
-
...e,
|
|
1748
|
-
contents: t
|
|
1749
|
-
};
|
|
1750
|
-
}
|
|
1751
|
-
case B:
|
|
1752
|
-
return {
|
|
1753
|
-
...e,
|
|
1754
|
-
breakContents: Ye(e.breakContents),
|
|
1755
|
-
flatContents: Ye(e.flatContents)
|
|
1756
|
-
};
|
|
1757
|
-
case w:
|
|
1758
|
-
return {
|
|
1759
|
-
...e,
|
|
1760
|
-
parts: sn(e.parts)
|
|
1761
|
-
};
|
|
1762
|
-
case V:
|
|
1763
|
-
return sn(e);
|
|
1764
|
-
case U:
|
|
1765
|
-
return e.replace(/[\n\r]*$/, "");
|
|
1766
|
-
case K:
|
|
1767
|
-
case N:
|
|
1768
|
-
case I:
|
|
1769
|
-
case x:
|
|
1770
|
-
case O:
|
|
1771
|
-
break;
|
|
1772
|
-
default:
|
|
1773
|
-
throw new te(e);
|
|
1774
|
-
}
|
|
1775
|
-
return e;
|
|
1776
|
-
}
|
|
1777
|
-
function at(e) {
|
|
1778
|
-
return Ye(pi(e));
|
|
1779
|
-
}
|
|
1780
|
-
function fi(e) {
|
|
1781
|
-
switch (H(e)) {
|
|
1782
|
-
case w:
|
|
1783
|
-
if (e.parts.every(t => t === "")) return "";
|
|
1784
|
-
break;
|
|
1785
|
-
case A:
|
|
1786
|
-
if (!e.contents && !e.id && !e.break && !e.expandedStates) return "";
|
|
1787
|
-
if (e.contents.type === A && e.contents.id === e.id && e.contents.break === e.break && e.contents.expandedStates === e.expandedStates) return e.contents;
|
|
1788
|
-
break;
|
|
1789
|
-
case T:
|
|
1790
|
-
case v:
|
|
1791
|
-
case P:
|
|
1792
|
-
case R:
|
|
1793
|
-
if (!e.contents) return "";
|
|
1794
|
-
break;
|
|
1795
|
-
case B:
|
|
1796
|
-
if (!e.flatContents && !e.breakContents) return "";
|
|
1797
|
-
break;
|
|
1798
|
-
case V:
|
|
1799
|
-
{
|
|
1800
|
-
let t = [];
|
|
1801
|
-
for (let r of e) {
|
|
1802
|
-
if (!r) continue;
|
|
1803
|
-
let [n, ...i] = Array.isArray(r) ? r : [r];
|
|
1804
|
-
typeof n == "string" && typeof _(!1, t, -1) == "string" ? t[t.length - 1] += n : t.push(n), t.push(...i);
|
|
1805
|
-
}
|
|
1806
|
-
return t.length === 0 ? "" : t.length === 1 ? t[0] : t;
|
|
1807
|
-
}
|
|
1808
|
-
case U:
|
|
1809
|
-
case K:
|
|
1810
|
-
case N:
|
|
1811
|
-
case I:
|
|
1812
|
-
case x:
|
|
1813
|
-
case k:
|
|
1814
|
-
case O:
|
|
1815
|
-
break;
|
|
1816
|
-
default:
|
|
1817
|
-
throw new te(e);
|
|
1818
|
-
}
|
|
1819
|
-
return e;
|
|
1820
|
-
}
|
|
1821
|
-
function pi(e) {
|
|
1822
|
-
return Me(e, t => fi(t));
|
|
1823
|
-
}
|
|
1824
|
-
function fn(e, t = it) {
|
|
1825
|
-
return Me(e, r => typeof r == "string" ? Ie(t, r.split(`
|
|
1826
|
-
`)) : r);
|
|
1827
|
-
}
|
|
1828
|
-
function di(e) {
|
|
1829
|
-
if (e.type === x) return !0;
|
|
1830
|
-
}
|
|
1831
|
-
function pn(e) {
|
|
1832
|
-
return st(e, di, !1);
|
|
1833
|
-
}
|
|
1834
|
-
function Dt(e, t) {
|
|
1835
|
-
return e.type === k ? {
|
|
1836
|
-
...e,
|
|
1837
|
-
contents: t(e.contents)
|
|
1838
|
-
} : t(e);
|
|
1839
|
-
}
|
|
1840
|
-
var L = Symbol("MODE_BREAK"),
|
|
1841
|
-
Z = Symbol("MODE_FLAT"),
|
|
1842
|
-
qe = Symbol("cursor");
|
|
1843
|
-
function dn() {
|
|
1844
|
-
return {
|
|
1845
|
-
value: "",
|
|
1846
|
-
length: 0,
|
|
1847
|
-
queue: []
|
|
1848
|
-
};
|
|
1849
|
-
}
|
|
1850
|
-
function Fi(e, t) {
|
|
1851
|
-
return It(e, {
|
|
1852
|
-
type: "indent"
|
|
1853
|
-
}, t);
|
|
1854
|
-
}
|
|
1855
|
-
function mi(e, t, r) {
|
|
1856
|
-
return t === Number.NEGATIVE_INFINITY ? e.root || dn() : t < 0 ? It(e, {
|
|
1857
|
-
type: "dedent"
|
|
1858
|
-
}, r) : t ? t.type === "root" ? {
|
|
1859
|
-
...e,
|
|
1860
|
-
root: e
|
|
1861
|
-
} : It(e, {
|
|
1862
|
-
type: typeof t == "string" ? "stringAlign" : "numberAlign",
|
|
1863
|
-
n: t
|
|
1864
|
-
}, r) : e;
|
|
1865
|
-
}
|
|
1866
|
-
function It(e, t, r) {
|
|
1867
|
-
let n = t.type === "dedent" ? e.queue.slice(0, -1) : [...e.queue, t],
|
|
1868
|
-
i = "",
|
|
1869
|
-
u = 0,
|
|
1870
|
-
o = 0,
|
|
1871
|
-
s = 0;
|
|
1872
|
-
for (let f of n) switch (f.type) {
|
|
1873
|
-
case "indent":
|
|
1874
|
-
c(), r.useTabs ? a(1) : D(r.tabWidth);
|
|
1875
|
-
break;
|
|
1876
|
-
case "stringAlign":
|
|
1877
|
-
c(), i += f.n, u += f.n.length;
|
|
1878
|
-
break;
|
|
1879
|
-
case "numberAlign":
|
|
1880
|
-
o += 1, s += f.n;
|
|
1881
|
-
break;
|
|
1882
|
-
default:
|
|
1883
|
-
throw new Error(`Unexpected type '${f.type}'`);
|
|
1884
|
-
}
|
|
1885
|
-
return l(), {
|
|
1886
|
-
...e,
|
|
1887
|
-
value: i,
|
|
1888
|
-
length: u,
|
|
1889
|
-
queue: n
|
|
1890
|
-
};
|
|
1891
|
-
function a(f) {
|
|
1892
|
-
i += " ".repeat(f), u += r.tabWidth * f;
|
|
1893
|
-
}
|
|
1894
|
-
function D(f) {
|
|
1895
|
-
i += " ".repeat(f), u += f;
|
|
1896
|
-
}
|
|
1897
|
-
function c() {
|
|
1898
|
-
r.useTabs ? d() : l();
|
|
1899
|
-
}
|
|
1900
|
-
function d() {
|
|
1901
|
-
o > 0 && a(o), F();
|
|
1902
|
-
}
|
|
1903
|
-
function l() {
|
|
1904
|
-
s > 0 && D(s), F();
|
|
1905
|
-
}
|
|
1906
|
-
function F() {
|
|
1907
|
-
o = 0, s = 0;
|
|
1908
|
-
}
|
|
1909
|
-
}
|
|
1910
|
-
function Lt(e) {
|
|
1911
|
-
let t = 0,
|
|
1912
|
-
r = 0,
|
|
1913
|
-
n = e.length;
|
|
1914
|
-
e: for (; n--;) {
|
|
1915
|
-
let i = e[n];
|
|
1916
|
-
if (i === qe) {
|
|
1917
|
-
r++;
|
|
1918
|
-
continue;
|
|
1919
|
-
}
|
|
1920
|
-
for (let u = i.length - 1; u >= 0; u--) {
|
|
1921
|
-
let o = i[u];
|
|
1922
|
-
if (o === " " || o === " ") t++;else {
|
|
1923
|
-
e[n] = i.slice(0, u + 1);
|
|
1924
|
-
break e;
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
}
|
|
1928
|
-
if (t > 0 || r > 0) for (e.length = n + 1; r-- > 0;) e.push(qe);
|
|
1929
|
-
return t;
|
|
1930
|
-
}
|
|
1931
|
-
function ct(e, t, r, n, i, u) {
|
|
1932
|
-
if (r === Number.POSITIVE_INFINITY) return !0;
|
|
1933
|
-
let o = t.length,
|
|
1934
|
-
s = [e],
|
|
1935
|
-
a = [];
|
|
1936
|
-
for (; r >= 0;) {
|
|
1937
|
-
if (s.length === 0) {
|
|
1938
|
-
if (o === 0) return !0;
|
|
1939
|
-
s.push(t[--o]);
|
|
1940
|
-
continue;
|
|
1941
|
-
}
|
|
1942
|
-
let {
|
|
1943
|
-
mode: D,
|
|
1944
|
-
doc: c
|
|
1945
|
-
} = s.pop();
|
|
1946
|
-
switch (H(c)) {
|
|
1947
|
-
case U:
|
|
1948
|
-
a.push(c), r -= je(c);
|
|
1949
|
-
break;
|
|
1950
|
-
case V:
|
|
1951
|
-
case w:
|
|
1952
|
-
{
|
|
1953
|
-
let d = an(c);
|
|
1954
|
-
for (let l = d.length - 1; l >= 0; l--) s.push({
|
|
1955
|
-
mode: D,
|
|
1956
|
-
doc: d[l]
|
|
1957
|
-
});
|
|
1958
|
-
break;
|
|
1959
|
-
}
|
|
1960
|
-
case v:
|
|
1961
|
-
case T:
|
|
1962
|
-
case P:
|
|
1963
|
-
case k:
|
|
1964
|
-
s.push({
|
|
1965
|
-
mode: D,
|
|
1966
|
-
doc: c.contents
|
|
1967
|
-
});
|
|
1968
|
-
break;
|
|
1969
|
-
case N:
|
|
1970
|
-
r += Lt(a);
|
|
1971
|
-
break;
|
|
1972
|
-
case A:
|
|
1973
|
-
{
|
|
1974
|
-
if (u && c.break) return !1;
|
|
1975
|
-
let d = c.break ? L : D,
|
|
1976
|
-
l = c.expandedStates && d === L ? _(!1, c.expandedStates, -1) : c.contents;
|
|
1977
|
-
s.push({
|
|
1978
|
-
mode: d,
|
|
1979
|
-
doc: l
|
|
1980
|
-
});
|
|
1981
|
-
break;
|
|
1982
|
-
}
|
|
1983
|
-
case B:
|
|
1984
|
-
{
|
|
1985
|
-
let l = (c.groupId ? i[c.groupId] || Z : D) === L ? c.breakContents : c.flatContents;
|
|
1986
|
-
l && s.push({
|
|
1987
|
-
mode: D,
|
|
1988
|
-
doc: l
|
|
1989
|
-
});
|
|
1990
|
-
break;
|
|
1991
|
-
}
|
|
1992
|
-
case x:
|
|
1993
|
-
if (D === L || c.hard) return !0;
|
|
1994
|
-
c.soft || (a.push(" "), r--);
|
|
1995
|
-
break;
|
|
1996
|
-
case R:
|
|
1997
|
-
n = !0;
|
|
1998
|
-
break;
|
|
1999
|
-
case I:
|
|
2000
|
-
if (n) return !1;
|
|
2001
|
-
break;
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
return !1;
|
|
2005
|
-
}
|
|
2006
|
-
function xe(e, t) {
|
|
2007
|
-
let r = {},
|
|
2008
|
-
n = t.printWidth,
|
|
2009
|
-
i = Le(t.endOfLine),
|
|
2010
|
-
u = 0,
|
|
2011
|
-
o = [{
|
|
2012
|
-
ind: dn(),
|
|
2013
|
-
mode: L,
|
|
2014
|
-
doc: e
|
|
2015
|
-
}],
|
|
2016
|
-
s = [],
|
|
2017
|
-
a = !1,
|
|
2018
|
-
D = [],
|
|
2019
|
-
c = 0;
|
|
2020
|
-
for (cn(e); o.length > 0;) {
|
|
2021
|
-
let {
|
|
2022
|
-
ind: l,
|
|
2023
|
-
mode: F,
|
|
2024
|
-
doc: f
|
|
2025
|
-
} = o.pop();
|
|
2026
|
-
switch (H(f)) {
|
|
2027
|
-
case U:
|
|
2028
|
-
{
|
|
2029
|
-
let p = i !== `
|
|
2030
|
-
` ? De(!1, f, `
|
|
2031
|
-
`, i) : f;
|
|
2032
|
-
s.push(p), o.length > 0 && (u += je(p));
|
|
2033
|
-
break;
|
|
2034
|
-
}
|
|
2035
|
-
case V:
|
|
2036
|
-
for (let p = f.length - 1; p >= 0; p--) o.push({
|
|
2037
|
-
ind: l,
|
|
2038
|
-
mode: F,
|
|
2039
|
-
doc: f[p]
|
|
2040
|
-
});
|
|
2041
|
-
break;
|
|
2042
|
-
case K:
|
|
2043
|
-
if (c >= 2) throw new Error("There are too many 'cursor' in doc.");
|
|
2044
|
-
s.push(qe), c++;
|
|
2045
|
-
break;
|
|
2046
|
-
case v:
|
|
2047
|
-
o.push({
|
|
2048
|
-
ind: Fi(l, t),
|
|
2049
|
-
mode: F,
|
|
2050
|
-
doc: f.contents
|
|
2051
|
-
});
|
|
2052
|
-
break;
|
|
2053
|
-
case T:
|
|
2054
|
-
o.push({
|
|
2055
|
-
ind: mi(l, f.n, t),
|
|
2056
|
-
mode: F,
|
|
2057
|
-
doc: f.contents
|
|
2058
|
-
});
|
|
2059
|
-
break;
|
|
2060
|
-
case N:
|
|
2061
|
-
u -= Lt(s);
|
|
2062
|
-
break;
|
|
2063
|
-
case A:
|
|
2064
|
-
switch (F) {
|
|
2065
|
-
case Z:
|
|
2066
|
-
if (!a) {
|
|
2067
|
-
o.push({
|
|
2068
|
-
ind: l,
|
|
2069
|
-
mode: f.break ? L : Z,
|
|
2070
|
-
doc: f.contents
|
|
2071
|
-
});
|
|
2072
|
-
break;
|
|
2073
|
-
}
|
|
2074
|
-
case L:
|
|
2075
|
-
{
|
|
2076
|
-
a = !1;
|
|
2077
|
-
let p = {
|
|
2078
|
-
ind: l,
|
|
2079
|
-
mode: Z,
|
|
2080
|
-
doc: f.contents
|
|
2081
|
-
},
|
|
2082
|
-
m = n - u,
|
|
2083
|
-
h = D.length > 0;
|
|
2084
|
-
if (!f.break && ct(p, o, m, h, r)) o.push(p);else if (f.expandedStates) {
|
|
2085
|
-
let C = _(!1, f.expandedStates, -1);
|
|
2086
|
-
if (f.break) {
|
|
2087
|
-
o.push({
|
|
2088
|
-
ind: l,
|
|
2089
|
-
mode: L,
|
|
2090
|
-
doc: C
|
|
2091
|
-
});
|
|
2092
|
-
break;
|
|
2093
|
-
} else for (let g = 1; g < f.expandedStates.length + 1; g++) if (g >= f.expandedStates.length) {
|
|
2094
|
-
o.push({
|
|
2095
|
-
ind: l,
|
|
2096
|
-
mode: L,
|
|
2097
|
-
doc: C
|
|
2098
|
-
});
|
|
2099
|
-
break;
|
|
2100
|
-
} else {
|
|
2101
|
-
let y = f.expandedStates[g],
|
|
2102
|
-
b = {
|
|
2103
|
-
ind: l,
|
|
2104
|
-
mode: Z,
|
|
2105
|
-
doc: y
|
|
2106
|
-
};
|
|
2107
|
-
if (ct(b, o, m, h, r)) {
|
|
2108
|
-
o.push(b);
|
|
2109
|
-
break;
|
|
2110
|
-
}
|
|
2111
|
-
}
|
|
2112
|
-
} else o.push({
|
|
2113
|
-
ind: l,
|
|
2114
|
-
mode: L,
|
|
2115
|
-
doc: f.contents
|
|
2116
|
-
});
|
|
2117
|
-
break;
|
|
2118
|
-
}
|
|
2119
|
-
}
|
|
2120
|
-
f.id && (r[f.id] = _(!1, o, -1).mode);
|
|
2121
|
-
break;
|
|
2122
|
-
case w:
|
|
2123
|
-
{
|
|
2124
|
-
let p = n - u,
|
|
2125
|
-
{
|
|
2126
|
-
parts: m
|
|
2127
|
-
} = f;
|
|
2128
|
-
if (m.length === 0) break;
|
|
2129
|
-
let [h, C] = m,
|
|
2130
|
-
g = {
|
|
2131
|
-
ind: l,
|
|
2132
|
-
mode: Z,
|
|
2133
|
-
doc: h
|
|
2134
|
-
},
|
|
2135
|
-
y = {
|
|
2136
|
-
ind: l,
|
|
2137
|
-
mode: L,
|
|
2138
|
-
doc: h
|
|
2139
|
-
},
|
|
2140
|
-
b = ct(g, [], p, D.length > 0, r, !0);
|
|
2141
|
-
if (m.length === 1) {
|
|
2142
|
-
b ? o.push(g) : o.push(y);
|
|
2143
|
-
break;
|
|
2144
|
-
}
|
|
2145
|
-
let se = {
|
|
2146
|
-
ind: l,
|
|
2147
|
-
mode: Z,
|
|
2148
|
-
doc: C
|
|
2149
|
-
},
|
|
2150
|
-
G = {
|
|
2151
|
-
ind: l,
|
|
2152
|
-
mode: L,
|
|
2153
|
-
doc: C
|
|
2154
|
-
};
|
|
2155
|
-
if (m.length === 2) {
|
|
2156
|
-
b ? o.push(se, g) : o.push(G, y);
|
|
2157
|
-
break;
|
|
2158
|
-
}
|
|
2159
|
-
m.splice(0, 2);
|
|
2160
|
-
let ae = {
|
|
2161
|
-
ind: l,
|
|
2162
|
-
mode: F,
|
|
2163
|
-
doc: nt(m)
|
|
2164
|
-
},
|
|
2165
|
-
jr = m[0];
|
|
2166
|
-
ct({
|
|
2167
|
-
ind: l,
|
|
2168
|
-
mode: Z,
|
|
2169
|
-
doc: [h, C, jr]
|
|
2170
|
-
}, [], p, D.length > 0, r, !0) ? o.push(ae, se, g) : b ? o.push(ae, G, g) : o.push(ae, G, y);
|
|
2171
|
-
break;
|
|
2172
|
-
}
|
|
2173
|
-
case B:
|
|
2174
|
-
case P:
|
|
2175
|
-
{
|
|
2176
|
-
let p = f.groupId ? r[f.groupId] : F;
|
|
2177
|
-
if (p === L) {
|
|
2178
|
-
let m = f.type === B ? f.breakContents : f.negate ? f.contents : Fe(f.contents);
|
|
2179
|
-
m && o.push({
|
|
2180
|
-
ind: l,
|
|
2181
|
-
mode: F,
|
|
2182
|
-
doc: m
|
|
2183
|
-
});
|
|
2184
|
-
}
|
|
2185
|
-
if (p === Z) {
|
|
2186
|
-
let m = f.type === B ? f.flatContents : f.negate ? Fe(f.contents) : f.contents;
|
|
2187
|
-
m && o.push({
|
|
2188
|
-
ind: l,
|
|
2189
|
-
mode: F,
|
|
2190
|
-
doc: m
|
|
2191
|
-
});
|
|
2192
|
-
}
|
|
2193
|
-
break;
|
|
2194
|
-
}
|
|
2195
|
-
case R:
|
|
2196
|
-
D.push({
|
|
2197
|
-
ind: l,
|
|
2198
|
-
mode: F,
|
|
2199
|
-
doc: f.contents
|
|
2200
|
-
});
|
|
2201
|
-
break;
|
|
2202
|
-
case I:
|
|
2203
|
-
D.length > 0 && o.push({
|
|
2204
|
-
ind: l,
|
|
2205
|
-
mode: F,
|
|
2206
|
-
doc: Pe
|
|
2207
|
-
});
|
|
2208
|
-
break;
|
|
2209
|
-
case x:
|
|
2210
|
-
switch (F) {
|
|
2211
|
-
case Z:
|
|
2212
|
-
if (f.hard) a = !0;else {
|
|
2213
|
-
f.soft || (s.push(" "), u += 1);
|
|
2214
|
-
break;
|
|
2215
|
-
}
|
|
2216
|
-
case L:
|
|
2217
|
-
if (D.length > 0) {
|
|
2218
|
-
o.push({
|
|
2219
|
-
ind: l,
|
|
2220
|
-
mode: F,
|
|
2221
|
-
doc: f
|
|
2222
|
-
}, ...D.reverse()), D.length = 0;
|
|
2223
|
-
break;
|
|
2224
|
-
}
|
|
2225
|
-
f.literal ? l.root ? (s.push(i, l.root.value), u = l.root.length) : (s.push(i), u = 0) : (u -= Lt(s), s.push(i + l.value), u = l.length);
|
|
2226
|
-
break;
|
|
2227
|
-
}
|
|
2228
|
-
break;
|
|
2229
|
-
case k:
|
|
2230
|
-
o.push({
|
|
2231
|
-
ind: l,
|
|
2232
|
-
mode: F,
|
|
2233
|
-
doc: f.contents
|
|
2234
|
-
});
|
|
2235
|
-
break;
|
|
2236
|
-
case O:
|
|
2237
|
-
break;
|
|
2238
|
-
default:
|
|
2239
|
-
throw new te(f);
|
|
2240
|
-
}
|
|
2241
|
-
o.length === 0 && D.length > 0 && (o.push(...D.reverse()), D.length = 0);
|
|
2242
|
-
}
|
|
2243
|
-
let d = s.indexOf(qe);
|
|
2244
|
-
if (d !== -1) {
|
|
2245
|
-
let l = s.indexOf(qe, d + 1),
|
|
2246
|
-
F = s.slice(0, d).join(""),
|
|
2247
|
-
f = s.slice(d + 1, l).join(""),
|
|
2248
|
-
p = s.slice(l + 1).join("");
|
|
2249
|
-
return {
|
|
2250
|
-
formatted: F + f + p,
|
|
2251
|
-
cursorNodeStart: F.length,
|
|
2252
|
-
cursorNodeText: f
|
|
2253
|
-
};
|
|
2254
|
-
}
|
|
2255
|
-
return {
|
|
2256
|
-
formatted: s.join("")
|
|
2257
|
-
};
|
|
2258
|
-
}
|
|
2259
|
-
function re(e) {
|
|
2260
|
-
var t;
|
|
2261
|
-
if (!e) return "";
|
|
2262
|
-
if (Array.isArray(e)) {
|
|
2263
|
-
let r = [];
|
|
2264
|
-
for (let n of e) if (Array.isArray(n)) r.push(...re(n));else {
|
|
2265
|
-
let i = re(n);
|
|
2266
|
-
i !== "" && r.push(i);
|
|
2267
|
-
}
|
|
2268
|
-
return r;
|
|
2269
|
-
}
|
|
2270
|
-
return e.type === B ? {
|
|
2271
|
-
...e,
|
|
2272
|
-
breakContents: re(e.breakContents),
|
|
2273
|
-
flatContents: re(e.flatContents)
|
|
2274
|
-
} : e.type === A ? {
|
|
2275
|
-
...e,
|
|
2276
|
-
contents: re(e.contents),
|
|
2277
|
-
expandedStates: (t = e.expandedStates) == null ? void 0 : t.map(re)
|
|
2278
|
-
} : e.type === w ? {
|
|
2279
|
-
type: "fill",
|
|
2280
|
-
parts: e.parts.map(re)
|
|
2281
|
-
} : e.contents ? {
|
|
2282
|
-
...e,
|
|
2283
|
-
contents: re(e.contents)
|
|
2284
|
-
} : e;
|
|
2285
|
-
}
|
|
2286
|
-
function Fn(e) {
|
|
2287
|
-
let t = Object.create(null),
|
|
2288
|
-
r = new Set();
|
|
2289
|
-
return n(re(e));
|
|
2290
|
-
function n(u, o, s) {
|
|
2291
|
-
var a, D;
|
|
2292
|
-
if (typeof u == "string") return JSON.stringify(u);
|
|
2293
|
-
if (Array.isArray(u)) {
|
|
2294
|
-
let c = u.map(n).filter(Boolean);
|
|
2295
|
-
return c.length === 1 ? c[0] : `[${c.join(", ")}]`;
|
|
2296
|
-
}
|
|
2297
|
-
if (u.type === x) {
|
|
2298
|
-
let c = ((a = s == null ? void 0 : s[o + 1]) == null ? void 0 : a.type) === O;
|
|
2299
|
-
return u.literal ? c ? "literalline" : "literallineWithoutBreakParent" : u.hard ? c ? "hardline" : "hardlineWithoutBreakParent" : u.soft ? "softline" : "line";
|
|
2300
|
-
}
|
|
2301
|
-
if (u.type === O) return ((D = s == null ? void 0 : s[o - 1]) == null ? void 0 : D.type) === x && s[o - 1].hard ? void 0 : "breakParent";
|
|
2302
|
-
if (u.type === N) return "trim";
|
|
2303
|
-
if (u.type === v) return "indent(" + n(u.contents) + ")";
|
|
2304
|
-
if (u.type === T) return u.n === Number.NEGATIVE_INFINITY ? "dedentToRoot(" + n(u.contents) + ")" : u.n < 0 ? "dedent(" + n(u.contents) + ")" : u.n.type === "root" ? "markAsRoot(" + n(u.contents) + ")" : "align(" + JSON.stringify(u.n) + ", " + n(u.contents) + ")";
|
|
2305
|
-
if (u.type === B) return "ifBreak(" + n(u.breakContents) + (u.flatContents ? ", " + n(u.flatContents) : "") + (u.groupId ? (u.flatContents ? "" : ', ""') + `, { groupId: ${i(u.groupId)} }` : "") + ")";
|
|
2306
|
-
if (u.type === P) {
|
|
2307
|
-
let c = [];
|
|
2308
|
-
u.negate && c.push("negate: true"), u.groupId && c.push(`groupId: ${i(u.groupId)}`);
|
|
2309
|
-
let d = c.length > 0 ? `, { ${c.join(", ")} }` : "";
|
|
2310
|
-
return `indentIfBreak(${n(u.contents)}${d})`;
|
|
2311
|
-
}
|
|
2312
|
-
if (u.type === A) {
|
|
2313
|
-
let c = [];
|
|
2314
|
-
u.break && u.break !== "propagated" && c.push("shouldBreak: true"), u.id && c.push(`id: ${i(u.id)}`);
|
|
2315
|
-
let d = c.length > 0 ? `, { ${c.join(", ")} }` : "";
|
|
2316
|
-
return u.expandedStates ? `conditionalGroup([${u.expandedStates.map(l => n(l)).join(",")}]${d})` : `group(${n(u.contents)}${d})`;
|
|
2317
|
-
}
|
|
2318
|
-
if (u.type === w) return `fill([${u.parts.map(c => n(c)).join(", ")}])`;
|
|
2319
|
-
if (u.type === R) return "lineSuffix(" + n(u.contents) + ")";
|
|
2320
|
-
if (u.type === I) return "lineSuffixBoundary";
|
|
2321
|
-
if (u.type === k) return `label(${JSON.stringify(u.label)}, ${n(u.contents)})`;
|
|
2322
|
-
throw new Error("Unknown doc type " + u.type);
|
|
2323
|
-
}
|
|
2324
|
-
function i(u) {
|
|
2325
|
-
if (typeof u != "symbol") return JSON.stringify(String(u));
|
|
2326
|
-
if (u in t) return t[u];
|
|
2327
|
-
let o = u.description || "symbol";
|
|
2328
|
-
for (let s = 0;; s++) {
|
|
2329
|
-
let a = o + (s > 0 ? ` #${s}` : "");
|
|
2330
|
-
if (!r.has(a)) return r.add(a), t[u] = `Symbol.for(${JSON.stringify(a)})`;
|
|
2331
|
-
}
|
|
2332
|
-
}
|
|
2333
|
-
}
|
|
2334
|
-
function hi(e, t, r = 0) {
|
|
2335
|
-
let n = 0;
|
|
2336
|
-
for (let i = r; i < e.length; ++i) e[i] === " " ? n = n + t - n % t : n++;
|
|
2337
|
-
return n;
|
|
2338
|
-
}
|
|
2339
|
-
var be = hi;
|
|
2340
|
-
var $e = class extends Error {
|
|
2341
|
-
name = "ConfigError";
|
|
2342
|
-
},
|
|
2343
|
-
Ve = class extends Error {
|
|
2344
|
-
name = "UndefinedParserError";
|
|
2345
|
-
};
|
|
2346
|
-
var mn = {
|
|
2347
|
-
cursorOffset: {
|
|
2348
|
-
category: "Special",
|
|
2349
|
-
type: "int",
|
|
2350
|
-
default: -1,
|
|
2351
|
-
range: {
|
|
2352
|
-
start: -1,
|
|
2353
|
-
end: 1 / 0,
|
|
2354
|
-
step: 1
|
|
2355
|
-
},
|
|
2356
|
-
description: `Print (to stderr) where a cursor at the given position would move to after formatting.
|
|
2357
|
-
This option cannot be used with --range-start and --range-end.`,
|
|
2358
|
-
cliCategory: "Editor"
|
|
2359
|
-
},
|
|
2360
|
-
endOfLine: {
|
|
2361
|
-
category: "Global",
|
|
2362
|
-
type: "choice",
|
|
2363
|
-
default: "lf",
|
|
2364
|
-
description: "Which end of line characters to apply.",
|
|
2365
|
-
choices: [{
|
|
2366
|
-
value: "lf",
|
|
2367
|
-
description: "Line Feed only (\\n), common on Linux and macOS as well as inside git repos"
|
|
2368
|
-
}, {
|
|
2369
|
-
value: "crlf",
|
|
2370
|
-
description: "Carriage Return + Line Feed characters (\\r\\n), common on Windows"
|
|
2371
|
-
}, {
|
|
2372
|
-
value: "cr",
|
|
2373
|
-
description: "Carriage Return character only (\\r), used very rarely"
|
|
2374
|
-
}, {
|
|
2375
|
-
value: "auto",
|
|
2376
|
-
description: `Maintain existing
|
|
2377
|
-
(mixed values within one file are normalised by looking at what's used after the first line)`
|
|
2378
|
-
}]
|
|
2379
|
-
},
|
|
2380
|
-
filepath: {
|
|
2381
|
-
category: "Special",
|
|
2382
|
-
type: "path",
|
|
2383
|
-
description: "Specify the input filepath. This will be used to do parser inference.",
|
|
2384
|
-
cliName: "stdin-filepath",
|
|
2385
|
-
cliCategory: "Other",
|
|
2386
|
-
cliDescription: "Path to the file to pretend that stdin comes from."
|
|
2387
|
-
},
|
|
2388
|
-
insertPragma: {
|
|
2389
|
-
category: "Special",
|
|
2390
|
-
type: "boolean",
|
|
2391
|
-
default: !1,
|
|
2392
|
-
description: "Insert @format pragma into file's first docblock comment.",
|
|
2393
|
-
cliCategory: "Other"
|
|
2394
|
-
},
|
|
2395
|
-
parser: {
|
|
2396
|
-
category: "Global",
|
|
2397
|
-
type: "choice",
|
|
2398
|
-
default: void 0,
|
|
2399
|
-
description: "Which parser to use.",
|
|
2400
|
-
exception: e => typeof e == "string" || typeof e == "function",
|
|
2401
|
-
choices: [{
|
|
2402
|
-
value: "flow",
|
|
2403
|
-
description: "Flow"
|
|
2404
|
-
}, {
|
|
2405
|
-
value: "babel",
|
|
2406
|
-
description: "JavaScript"
|
|
2407
|
-
}, {
|
|
2408
|
-
value: "babel-flow",
|
|
2409
|
-
description: "Flow"
|
|
2410
|
-
}, {
|
|
2411
|
-
value: "babel-ts",
|
|
2412
|
-
description: "TypeScript"
|
|
2413
|
-
}, {
|
|
2414
|
-
value: "typescript",
|
|
2415
|
-
description: "TypeScript"
|
|
2416
|
-
}, {
|
|
2417
|
-
value: "acorn",
|
|
2418
|
-
description: "JavaScript"
|
|
2419
|
-
}, {
|
|
2420
|
-
value: "espree",
|
|
2421
|
-
description: "JavaScript"
|
|
2422
|
-
}, {
|
|
2423
|
-
value: "meriyah",
|
|
2424
|
-
description: "JavaScript"
|
|
2425
|
-
}, {
|
|
2426
|
-
value: "css",
|
|
2427
|
-
description: "CSS"
|
|
2428
|
-
}, {
|
|
2429
|
-
value: "less",
|
|
2430
|
-
description: "Less"
|
|
2431
|
-
}, {
|
|
2432
|
-
value: "scss",
|
|
2433
|
-
description: "SCSS"
|
|
2434
|
-
}, {
|
|
2435
|
-
value: "json",
|
|
2436
|
-
description: "JSON"
|
|
2437
|
-
}, {
|
|
2438
|
-
value: "json5",
|
|
2439
|
-
description: "JSON5"
|
|
2440
|
-
}, {
|
|
2441
|
-
value: "json-stringify",
|
|
2442
|
-
description: "JSON.stringify"
|
|
2443
|
-
}, {
|
|
2444
|
-
value: "graphql",
|
|
2445
|
-
description: "GraphQL"
|
|
2446
|
-
}, {
|
|
2447
|
-
value: "markdown",
|
|
2448
|
-
description: "Markdown"
|
|
2449
|
-
}, {
|
|
2450
|
-
value: "mdx",
|
|
2451
|
-
description: "MDX"
|
|
2452
|
-
}, {
|
|
2453
|
-
value: "vue",
|
|
2454
|
-
description: "Vue"
|
|
2455
|
-
}, {
|
|
2456
|
-
value: "yaml",
|
|
2457
|
-
description: "YAML"
|
|
2458
|
-
}, {
|
|
2459
|
-
value: "glimmer",
|
|
2460
|
-
description: "Ember / Handlebars"
|
|
2461
|
-
}, {
|
|
2462
|
-
value: "html",
|
|
2463
|
-
description: "HTML"
|
|
2464
|
-
}, {
|
|
2465
|
-
value: "angular",
|
|
2466
|
-
description: "Angular"
|
|
2467
|
-
}, {
|
|
2468
|
-
value: "lwc",
|
|
2469
|
-
description: "Lightning Web Components"
|
|
2470
|
-
}]
|
|
2471
|
-
},
|
|
2472
|
-
plugins: {
|
|
2473
|
-
type: "path",
|
|
2474
|
-
array: !0,
|
|
2475
|
-
default: [{
|
|
2476
|
-
value: []
|
|
2477
|
-
}],
|
|
2478
|
-
category: "Global",
|
|
2479
|
-
description: "Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",
|
|
2480
|
-
exception: e => typeof e == "string" || typeof e == "object",
|
|
2481
|
-
cliName: "plugin",
|
|
2482
|
-
cliCategory: "Config"
|
|
2483
|
-
},
|
|
2484
|
-
printWidth: {
|
|
2485
|
-
category: "Global",
|
|
2486
|
-
type: "int",
|
|
2487
|
-
default: 80,
|
|
2488
|
-
description: "The line length where Prettier will try wrap.",
|
|
2489
|
-
range: {
|
|
2490
|
-
start: 0,
|
|
2491
|
-
end: 1 / 0,
|
|
2492
|
-
step: 1
|
|
2493
|
-
}
|
|
2494
|
-
},
|
|
2495
|
-
rangeEnd: {
|
|
2496
|
-
category: "Special",
|
|
2497
|
-
type: "int",
|
|
2498
|
-
default: 1 / 0,
|
|
2499
|
-
range: {
|
|
2500
|
-
start: 0,
|
|
2501
|
-
end: 1 / 0,
|
|
2502
|
-
step: 1
|
|
2503
|
-
},
|
|
2504
|
-
description: `Format code ending at a given character offset (exclusive).
|
|
2505
|
-
The range will extend forwards to the end of the selected statement.
|
|
2506
|
-
This option cannot be used with --cursor-offset.`,
|
|
2507
|
-
cliCategory: "Editor"
|
|
2508
|
-
},
|
|
2509
|
-
rangeStart: {
|
|
2510
|
-
category: "Special",
|
|
2511
|
-
type: "int",
|
|
2512
|
-
default: 0,
|
|
2513
|
-
range: {
|
|
2514
|
-
start: 0,
|
|
2515
|
-
end: 1 / 0,
|
|
2516
|
-
step: 1
|
|
2517
|
-
},
|
|
2518
|
-
description: `Format code starting at a given character offset.
|
|
2519
|
-
The range will extend backwards to the start of the first line containing the selected statement.
|
|
2520
|
-
This option cannot be used with --cursor-offset.`,
|
|
2521
|
-
cliCategory: "Editor"
|
|
2522
|
-
},
|
|
2523
|
-
requirePragma: {
|
|
2524
|
-
category: "Special",
|
|
2525
|
-
type: "boolean",
|
|
2526
|
-
default: !1,
|
|
2527
|
-
description: `Require either '@prettier' or '@format' to be present in the file's first docblock comment
|
|
2528
|
-
in order for it to be formatted.`,
|
|
2529
|
-
cliCategory: "Other"
|
|
2530
|
-
},
|
|
2531
|
-
tabWidth: {
|
|
2532
|
-
type: "int",
|
|
2533
|
-
category: "Global",
|
|
2534
|
-
default: 2,
|
|
2535
|
-
description: "Number of spaces per indentation level.",
|
|
2536
|
-
range: {
|
|
2537
|
-
start: 0,
|
|
2538
|
-
end: 1 / 0,
|
|
2539
|
-
step: 1
|
|
2540
|
-
}
|
|
2541
|
-
},
|
|
2542
|
-
useTabs: {
|
|
2543
|
-
category: "Global",
|
|
2544
|
-
type: "boolean",
|
|
2545
|
-
default: !1,
|
|
2546
|
-
description: "Indent with tabs instead of spaces."
|
|
2547
|
-
},
|
|
2548
|
-
embeddedLanguageFormatting: {
|
|
2549
|
-
category: "Global",
|
|
2550
|
-
type: "choice",
|
|
2551
|
-
default: "auto",
|
|
2552
|
-
description: "Control how Prettier formats quoted code embedded in the file.",
|
|
2553
|
-
choices: [{
|
|
2554
|
-
value: "auto",
|
|
2555
|
-
description: "Format embedded code if Prettier can automatically identify it."
|
|
2556
|
-
}, {
|
|
2557
|
-
value: "off",
|
|
2558
|
-
description: "Never automatically format embedded code."
|
|
2559
|
-
}]
|
|
2560
|
-
}
|
|
2561
|
-
};
|
|
2562
|
-
function lt({
|
|
2563
|
-
plugins: e = [],
|
|
2564
|
-
showDeprecated: t = !1
|
|
2565
|
-
} = {}) {
|
|
2566
|
-
let r = e.flatMap(i => i.languages ?? []),
|
|
2567
|
-
n = [];
|
|
2568
|
-
for (let i of Ci(Object.assign({}, ...e.map(({
|
|
2569
|
-
options: u
|
|
2570
|
-
}) => u), mn))) !t && i.deprecated || (Array.isArray(i.choices) && (t || (i.choices = i.choices.filter(u => !u.deprecated)), i.name === "parser" && (i.choices = [...i.choices, ...Ei(i.choices, r, e)])), i.pluginDefaults = Object.fromEntries(e.filter(u => {
|
|
2571
|
-
var o;
|
|
2572
|
-
return ((o = u.defaultOptions) == null ? void 0 : o[i.name]) !== void 0;
|
|
2573
|
-
}).map(u => [u.name, u.defaultOptions[i.name]])), n.push(i));
|
|
2574
|
-
return {
|
|
2575
|
-
languages: r,
|
|
2576
|
-
options: n
|
|
2577
|
-
};
|
|
2578
|
-
}
|
|
2579
|
-
function* Ei(e, t, r) {
|
|
2580
|
-
let n = new Set(e.map(i => i.value));
|
|
2581
|
-
for (let i of t) if (i.parsers) {
|
|
2582
|
-
for (let u of i.parsers) if (!n.has(u)) {
|
|
2583
|
-
n.add(u);
|
|
2584
|
-
let o = r.find(a => a.parsers && Object.prototype.hasOwnProperty.call(a.parsers, u)),
|
|
2585
|
-
s = i.name;
|
|
2586
|
-
o != null && o.name && (s += ` (plugin: ${o.name})`), yield {
|
|
2587
|
-
value: u,
|
|
2588
|
-
description: s
|
|
2589
|
-
};
|
|
2590
|
-
}
|
|
2591
|
-
}
|
|
2592
|
-
}
|
|
2593
|
-
function Ci(e) {
|
|
2594
|
-
let t = [];
|
|
2595
|
-
for (let [r, n] of Object.entries(e)) {
|
|
2596
|
-
let i = {
|
|
2597
|
-
name: r,
|
|
2598
|
-
...n
|
|
2599
|
-
};
|
|
2600
|
-
Array.isArray(i.default) && (i.default = _(!1, i.default, -1).value), t.push(i);
|
|
2601
|
-
}
|
|
2602
|
-
return t;
|
|
2603
|
-
}
|
|
2604
|
-
var gi = e => e.split(/[/\\]/).pop();
|
|
2605
|
-
function hn(e, t) {
|
|
2606
|
-
if (!t) return;
|
|
2607
|
-
let r = gi(t).toLowerCase();
|
|
2608
|
-
return e.find(n => {
|
|
2609
|
-
var i, u;
|
|
2610
|
-
return ((i = n.extensions) == null ? void 0 : i.some(o => r.endsWith(o))) || ((u = n.filenames) == null ? void 0 : u.some(o => o.toLowerCase() === r));
|
|
2611
|
-
});
|
|
2612
|
-
}
|
|
2613
|
-
function yi(e, t) {
|
|
2614
|
-
if (t) return e.find(({
|
|
2615
|
-
name: r
|
|
2616
|
-
}) => r.toLowerCase() === t) ?? e.find(({
|
|
2617
|
-
aliases: r
|
|
2618
|
-
}) => r == null ? void 0 : r.includes(t)) ?? e.find(({
|
|
2619
|
-
extensions: r
|
|
2620
|
-
}) => r == null ? void 0 : r.includes(`.${t}`));
|
|
2621
|
-
}
|
|
2622
|
-
function _i(e, t) {
|
|
2623
|
-
let r = e.plugins.flatMap(i => i.languages ?? []),
|
|
2624
|
-
n = yi(r, t.language) ?? hn(r, t.physicalFile) ?? hn(r, t.file) ?? (t.physicalFile, void 0);
|
|
2625
|
-
return n == null ? void 0 : n.parsers[0];
|
|
2626
|
-
}
|
|
2627
|
-
var En = _i;
|
|
2628
|
-
var z = kt(zn(), 1),
|
|
2629
|
-
gr;
|
|
2630
|
-
function go(e, t, {
|
|
2631
|
-
logger: r = !1,
|
|
2632
|
-
isCLI: n = !1,
|
|
2633
|
-
passThrough: i = !1,
|
|
2634
|
-
FlagSchema: u,
|
|
2635
|
-
descriptor: o
|
|
2636
|
-
} = {}) {
|
|
2637
|
-
if (n) {
|
|
2638
|
-
if (!u) throw new Error("'FlagSchema' option is required.");
|
|
2639
|
-
if (!o) throw new Error("'descriptor' option is required.");
|
|
2640
|
-
} else o = z.default.apiDescriptor;
|
|
2641
|
-
let s = i ? Array.isArray(i) ? (l, F) => i.includes(l) ? {
|
|
2642
|
-
[l]: F
|
|
2643
|
-
} : void 0 : (l, F) => ({
|
|
2644
|
-
[l]: F
|
|
2645
|
-
}) : (l, F, f) => {
|
|
2646
|
-
let {
|
|
2647
|
-
_: p,
|
|
2648
|
-
...m
|
|
2649
|
-
} = f.schemas;
|
|
2650
|
-
return z.default.levenUnknownHandler(l, F, {
|
|
2651
|
-
...f,
|
|
2652
|
-
schemas: m
|
|
2653
|
-
});
|
|
2654
|
-
},
|
|
2655
|
-
a = yo(t, {
|
|
2656
|
-
isCLI: n,
|
|
2657
|
-
FlagSchema: u
|
|
2658
|
-
}),
|
|
2659
|
-
D = new z.default.Normalizer(a, {
|
|
2660
|
-
logger: r,
|
|
2661
|
-
unknown: s,
|
|
2662
|
-
descriptor: o
|
|
2663
|
-
}),
|
|
2664
|
-
c = r !== !1;
|
|
2665
|
-
c && gr && (D._hasDeprecationWarned = gr);
|
|
2666
|
-
let d = D.normalize(e);
|
|
2667
|
-
return c && (gr = D._hasDeprecationWarned), d;
|
|
2668
|
-
}
|
|
2669
|
-
function yo(e, {
|
|
2670
|
-
isCLI: t,
|
|
2671
|
-
FlagSchema: r
|
|
2672
|
-
}) {
|
|
2673
|
-
let n = [];
|
|
2674
|
-
t && n.push(z.default.AnySchema.create({
|
|
2675
|
-
name: "_"
|
|
2676
|
-
}));
|
|
2677
|
-
for (let i of e) n.push(_o(i, {
|
|
2678
|
-
isCLI: t,
|
|
2679
|
-
optionInfos: e,
|
|
2680
|
-
FlagSchema: r
|
|
2681
|
-
})), i.alias && t && n.push(z.default.AliasSchema.create({
|
|
2682
|
-
name: i.alias,
|
|
2683
|
-
sourceName: i.name
|
|
2684
|
-
}));
|
|
2685
|
-
return n;
|
|
2686
|
-
}
|
|
2687
|
-
function _o(e, {
|
|
2688
|
-
isCLI: t,
|
|
2689
|
-
optionInfos: r,
|
|
2690
|
-
FlagSchema: n
|
|
2691
|
-
}) {
|
|
2692
|
-
let {
|
|
2693
|
-
name: i
|
|
2694
|
-
} = e,
|
|
2695
|
-
u = {
|
|
2696
|
-
name: i
|
|
2697
|
-
},
|
|
2698
|
-
o,
|
|
2699
|
-
s = {};
|
|
2700
|
-
switch (e.type) {
|
|
2701
|
-
case "int":
|
|
2702
|
-
o = z.default.IntegerSchema, t && (u.preprocess = Number);
|
|
2703
|
-
break;
|
|
2704
|
-
case "string":
|
|
2705
|
-
o = z.default.StringSchema;
|
|
2706
|
-
break;
|
|
2707
|
-
case "choice":
|
|
2708
|
-
o = z.default.ChoiceSchema, u.choices = e.choices.map(a => a != null && a.redirect ? {
|
|
2709
|
-
...a,
|
|
2710
|
-
redirect: {
|
|
2711
|
-
to: {
|
|
2712
|
-
key: e.name,
|
|
2713
|
-
value: a.redirect
|
|
2714
|
-
}
|
|
2715
|
-
}
|
|
2716
|
-
} : a);
|
|
2717
|
-
break;
|
|
2718
|
-
case "boolean":
|
|
2719
|
-
o = z.default.BooleanSchema;
|
|
2720
|
-
break;
|
|
2721
|
-
case "flag":
|
|
2722
|
-
o = n, u.flags = r.flatMap(a => [a.alias, a.description && a.name, a.oppositeDescription && `no-${a.name}`].filter(Boolean));
|
|
2723
|
-
break;
|
|
2724
|
-
case "path":
|
|
2725
|
-
o = z.default.StringSchema;
|
|
2726
|
-
break;
|
|
2727
|
-
default:
|
|
2728
|
-
throw new Error(`Unexpected type ${e.type}`);
|
|
2729
|
-
}
|
|
2730
|
-
if (e.exception ? u.validate = (a, D, c) => e.exception(a) || D.validate(a, c) : u.validate = (a, D, c) => a === void 0 || D.validate(a, c), e.redirect && (s.redirect = a => a ? {
|
|
2731
|
-
to: {
|
|
2732
|
-
key: e.redirect.option,
|
|
2733
|
-
value: e.redirect.value
|
|
2734
|
-
}
|
|
2735
|
-
} : void 0), e.deprecated && (s.deprecated = !0), t && !e.array) {
|
|
2736
|
-
let a = u.preprocess || (D => D);
|
|
2737
|
-
u.preprocess = (D, c, d) => c.preprocess(a(Array.isArray(D) ? _(!1, D, -1) : D), d);
|
|
2738
|
-
}
|
|
2739
|
-
return e.array ? z.default.ArraySchema.create({
|
|
2740
|
-
...(t ? {
|
|
2741
|
-
preprocess: a => Array.isArray(a) ? a : [a]
|
|
2742
|
-
} : {}),
|
|
2743
|
-
...s,
|
|
2744
|
-
valueSchema: o.create(u)
|
|
2745
|
-
}) : o.create({
|
|
2746
|
-
...u,
|
|
2747
|
-
...s
|
|
2748
|
-
});
|
|
2749
|
-
}
|
|
2750
|
-
var Wn = go;
|
|
2751
|
-
function yr(e, t) {
|
|
2752
|
-
if (!t) throw new Error("parserName is required.");
|
|
2753
|
-
for (let n = e.length - 1; n >= 0; n--) {
|
|
2754
|
-
let i = e[n];
|
|
2755
|
-
if (i.parsers && Object.prototype.hasOwnProperty.call(i.parsers, t)) return i;
|
|
2756
|
-
}
|
|
2757
|
-
let r = `Couldn't resolve parser "${t}".`;
|
|
2758
|
-
throw r += " Plugins must be explicitly added to the standalone bundle.", new $e(r);
|
|
2759
|
-
}
|
|
2760
|
-
function Gn(e, t) {
|
|
2761
|
-
if (!t) throw new Error("astFormat is required.");
|
|
2762
|
-
for (let n = e.length - 1; n >= 0; n--) {
|
|
2763
|
-
let i = e[n];
|
|
2764
|
-
if (i.printers && Object.prototype.hasOwnProperty.call(i.printers, t)) return i;
|
|
2765
|
-
}
|
|
2766
|
-
let r = `Couldn't find plugin for AST format "${t}".`;
|
|
2767
|
-
throw r += " Plugins must be explicitly added to the standalone bundle.", new $e(r);
|
|
2768
|
-
}
|
|
2769
|
-
function Ct({
|
|
2770
|
-
plugins: e,
|
|
2771
|
-
parser: t
|
|
2772
|
-
}) {
|
|
2773
|
-
let r = yr(e, t);
|
|
2774
|
-
return _r(r, t);
|
|
2775
|
-
}
|
|
2776
|
-
function _r(e, t) {
|
|
2777
|
-
let r = e.parsers[t];
|
|
2778
|
-
return typeof r == "function" ? r() : r;
|
|
2779
|
-
}
|
|
2780
|
-
function Un(e, t) {
|
|
2781
|
-
let r = e.printers[t];
|
|
2782
|
-
return typeof r == "function" ? r() : r;
|
|
2783
|
-
}
|
|
2784
|
-
var Kn = {
|
|
2785
|
-
astFormat: "estree",
|
|
2786
|
-
printer: {},
|
|
2787
|
-
originalText: void 0,
|
|
2788
|
-
locStart: null,
|
|
2789
|
-
locEnd: null
|
|
2790
|
-
};
|
|
2791
|
-
async function xo(e, t = {}) {
|
|
2792
|
-
var d;
|
|
2793
|
-
let r = {
|
|
2794
|
-
...e
|
|
2795
|
-
};
|
|
2796
|
-
if (!r.parser) if (r.filepath) {
|
|
2797
|
-
if (r.parser = En(r, {
|
|
2798
|
-
physicalFile: r.filepath
|
|
2799
|
-
}), !r.parser) throw new Ve(`No parser could be inferred for file "${r.filepath}".`);
|
|
2800
|
-
} else throw new Ve("No parser and no file path given, couldn't infer a parser.");
|
|
2801
|
-
let n = lt({
|
|
2802
|
-
plugins: e.plugins,
|
|
2803
|
-
showDeprecated: !0
|
|
2804
|
-
}).options,
|
|
2805
|
-
i = {
|
|
2806
|
-
...Kn,
|
|
2807
|
-
...Object.fromEntries(n.filter(l => l.default !== void 0).map(l => [l.name, l.default]))
|
|
2808
|
-
},
|
|
2809
|
-
u = yr(r.plugins, r.parser),
|
|
2810
|
-
o = await _r(u, r.parser);
|
|
2811
|
-
r.astFormat = o.astFormat, r.locEnd = o.locEnd, r.locStart = o.locStart;
|
|
2812
|
-
let s = (d = u.printers) != null && d[o.astFormat] ? u : Gn(r.plugins, o.astFormat),
|
|
2813
|
-
a = await Un(s, o.astFormat);
|
|
2814
|
-
r.printer = a;
|
|
2815
|
-
let D = s.defaultOptions ? Object.fromEntries(Object.entries(s.defaultOptions).filter(([, l]) => l !== void 0)) : {},
|
|
2816
|
-
c = {
|
|
2817
|
-
...i,
|
|
2818
|
-
...D
|
|
2819
|
-
};
|
|
2820
|
-
for (let [l, F] of Object.entries(c)) (r[l] === null || r[l] === void 0) && (r[l] = F);
|
|
2821
|
-
return r.parser === "json" && (r.trailingComma = "none"), Wn(r, n, {
|
|
2822
|
-
passThrough: Object.keys(Kn),
|
|
2823
|
-
...t
|
|
2824
|
-
});
|
|
2825
|
-
}
|
|
2826
|
-
var le = xo;
|
|
2827
|
-
var Hn = new Set(["tokens", "comments", "parent", "enclosingNode", "precedingNode", "followingNode"]),
|
|
2828
|
-
bo = e => Object.keys(e).filter(t => !Hn.has(t));
|
|
2829
|
-
function Ao(e) {
|
|
2830
|
-
return e ? t => e(t, Hn) : bo;
|
|
2831
|
-
}
|
|
2832
|
-
var ee = Ao;
|
|
2833
|
-
function Bo(e, t) {
|
|
2834
|
-
let {
|
|
2835
|
-
printer: {
|
|
2836
|
-
massageAstNode: r,
|
|
2837
|
-
getVisitorKeys: n
|
|
2838
|
-
}
|
|
2839
|
-
} = t;
|
|
2840
|
-
if (!r) return e;
|
|
2841
|
-
let i = ee(n),
|
|
2842
|
-
u = r.ignoredProperties ?? new Set();
|
|
2843
|
-
return o(e);
|
|
2844
|
-
function o(s, a) {
|
|
2845
|
-
if (!(s !== null && typeof s == "object")) return s;
|
|
2846
|
-
if (Array.isArray(s)) return s.map(l => o(l, a)).filter(Boolean);
|
|
2847
|
-
let D = {},
|
|
2848
|
-
c = new Set(i(s));
|
|
2849
|
-
for (let l in s) !Object.prototype.hasOwnProperty.call(s, l) || u.has(l) || (c.has(l) ? D[l] = o(s[l], s) : D[l] = s[l]);
|
|
2850
|
-
let d = r(s, D, a);
|
|
2851
|
-
if (d !== null) return d ?? D;
|
|
2852
|
-
}
|
|
2853
|
-
}
|
|
2854
|
-
var Jn = Bo;
|
|
2855
|
-
var nu = kt(ru(), 1);
|
|
2856
|
-
async function To(e, t) {
|
|
2857
|
-
let r = await Ct(t),
|
|
2858
|
-
n = r.preprocess ? r.preprocess(e, t) : e;
|
|
2859
|
-
t.originalText = n;
|
|
2860
|
-
let i;
|
|
2861
|
-
try {
|
|
2862
|
-
i = await r.parse(n, t, t);
|
|
2863
|
-
} catch (u) {
|
|
2864
|
-
No(u, e);
|
|
2865
|
-
}
|
|
2866
|
-
return {
|
|
2867
|
-
text: n,
|
|
2868
|
-
ast: i
|
|
2869
|
-
};
|
|
2870
|
-
}
|
|
2871
|
-
function No(e, t) {
|
|
2872
|
-
let {
|
|
2873
|
-
loc: r
|
|
2874
|
-
} = e;
|
|
2875
|
-
if (r) {
|
|
2876
|
-
let n = (0, nu.codeFrameColumns)(t, r, {
|
|
2877
|
-
highlightCode: !0
|
|
2878
|
-
});
|
|
2879
|
-
throw e.message += `
|
|
2880
|
-
` + n, e.codeFrame = n, e;
|
|
2881
|
-
}
|
|
2882
|
-
throw e;
|
|
2883
|
-
}
|
|
2884
|
-
var Ee = To;
|
|
2885
|
-
var Ke,
|
|
2886
|
-
Ar,
|
|
2887
|
-
Be,
|
|
2888
|
-
yt,
|
|
2889
|
-
br = class {
|
|
2890
|
-
constructor(t) {
|
|
2891
|
-
St(this, Ke);
|
|
2892
|
-
St(this, Be);
|
|
2893
|
-
this.stack = [t];
|
|
2894
|
-
}
|
|
2895
|
-
get key() {
|
|
2896
|
-
let {
|
|
2897
|
-
stack: t,
|
|
2898
|
-
siblings: r
|
|
2899
|
-
} = this;
|
|
2900
|
-
return _(!1, t, r === null ? -2 : -4) ?? null;
|
|
2901
|
-
}
|
|
2902
|
-
get index() {
|
|
2903
|
-
return this.siblings === null ? null : _(!1, this.stack, -2);
|
|
2904
|
-
}
|
|
2905
|
-
get node() {
|
|
2906
|
-
return _(!1, this.stack, -1);
|
|
2907
|
-
}
|
|
2908
|
-
get parent() {
|
|
2909
|
-
return this.getNode(1);
|
|
2910
|
-
}
|
|
2911
|
-
get grandparent() {
|
|
2912
|
-
return this.getNode(2);
|
|
2913
|
-
}
|
|
2914
|
-
get isInArray() {
|
|
2915
|
-
return this.siblings !== null;
|
|
2916
|
-
}
|
|
2917
|
-
get siblings() {
|
|
2918
|
-
let {
|
|
2919
|
-
stack: t
|
|
2920
|
-
} = this,
|
|
2921
|
-
r = _(!1, t, -3);
|
|
2922
|
-
return Array.isArray(r) ? r : null;
|
|
2923
|
-
}
|
|
2924
|
-
get next() {
|
|
2925
|
-
let {
|
|
2926
|
-
siblings: t
|
|
2927
|
-
} = this;
|
|
2928
|
-
return t === null ? null : t[this.index + 1];
|
|
2929
|
-
}
|
|
2930
|
-
get previous() {
|
|
2931
|
-
let {
|
|
2932
|
-
siblings: t
|
|
2933
|
-
} = this;
|
|
2934
|
-
return t === null ? null : t[this.index - 1];
|
|
2935
|
-
}
|
|
2936
|
-
get isFirst() {
|
|
2937
|
-
return this.index === 0;
|
|
2938
|
-
}
|
|
2939
|
-
get isLast() {
|
|
2940
|
-
let {
|
|
2941
|
-
siblings: t,
|
|
2942
|
-
index: r
|
|
2943
|
-
} = this;
|
|
2944
|
-
return t !== null && r === t.length - 1;
|
|
2945
|
-
}
|
|
2946
|
-
get isRoot() {
|
|
2947
|
-
return this.stack.length === 1;
|
|
2948
|
-
}
|
|
2949
|
-
get root() {
|
|
2950
|
-
return this.stack[0];
|
|
2951
|
-
}
|
|
2952
|
-
get ancestors() {
|
|
2953
|
-
return [...ye(this, Be, yt).call(this)];
|
|
2954
|
-
}
|
|
2955
|
-
getName() {
|
|
2956
|
-
let {
|
|
2957
|
-
stack: t
|
|
2958
|
-
} = this,
|
|
2959
|
-
{
|
|
2960
|
-
length: r
|
|
2961
|
-
} = t;
|
|
2962
|
-
return r > 1 ? _(!1, t, -2) : null;
|
|
2963
|
-
}
|
|
2964
|
-
getValue() {
|
|
2965
|
-
return _(!1, this.stack, -1);
|
|
2966
|
-
}
|
|
2967
|
-
getNode(t = 0) {
|
|
2968
|
-
let r = ye(this, Ke, Ar).call(this, t);
|
|
2969
|
-
return r === -1 ? null : this.stack[r];
|
|
2970
|
-
}
|
|
2971
|
-
getParentNode(t = 0) {
|
|
2972
|
-
return this.getNode(t + 1);
|
|
2973
|
-
}
|
|
2974
|
-
call(t, ...r) {
|
|
2975
|
-
let {
|
|
2976
|
-
stack: n
|
|
2977
|
-
} = this,
|
|
2978
|
-
{
|
|
2979
|
-
length: i
|
|
2980
|
-
} = n,
|
|
2981
|
-
u = _(!1, n, -1);
|
|
2982
|
-
for (let o of r) u = u[o], n.push(o, u);
|
|
2983
|
-
try {
|
|
2984
|
-
return t(this);
|
|
2985
|
-
} finally {
|
|
2986
|
-
n.length = i;
|
|
2987
|
-
}
|
|
2988
|
-
}
|
|
2989
|
-
callParent(t, r = 0) {
|
|
2990
|
-
let n = ye(this, Ke, Ar).call(this, r + 1),
|
|
2991
|
-
i = this.stack.splice(n + 1);
|
|
2992
|
-
try {
|
|
2993
|
-
return t(this);
|
|
2994
|
-
} finally {
|
|
2995
|
-
this.stack.push(...i);
|
|
2996
|
-
}
|
|
2997
|
-
}
|
|
2998
|
-
each(t, ...r) {
|
|
2999
|
-
let {
|
|
3000
|
-
stack: n
|
|
3001
|
-
} = this,
|
|
3002
|
-
{
|
|
3003
|
-
length: i
|
|
3004
|
-
} = n,
|
|
3005
|
-
u = _(!1, n, -1);
|
|
3006
|
-
for (let o of r) u = u[o], n.push(o, u);
|
|
3007
|
-
try {
|
|
3008
|
-
for (let o = 0; o < u.length; ++o) n.push(o, u[o]), t(this, o, u), n.length -= 2;
|
|
3009
|
-
} finally {
|
|
3010
|
-
n.length = i;
|
|
3011
|
-
}
|
|
3012
|
-
}
|
|
3013
|
-
map(t, ...r) {
|
|
3014
|
-
let n = [];
|
|
3015
|
-
return this.each((i, u, o) => {
|
|
3016
|
-
n[u] = t(i, u, o);
|
|
3017
|
-
}, ...r), n;
|
|
3018
|
-
}
|
|
3019
|
-
match(...t) {
|
|
3020
|
-
let r = this.stack.length - 1,
|
|
3021
|
-
n = null,
|
|
3022
|
-
i = this.stack[r--];
|
|
3023
|
-
for (let u of t) {
|
|
3024
|
-
if (i === void 0) return !1;
|
|
3025
|
-
let o = null;
|
|
3026
|
-
if (typeof n == "number" && (o = n, n = this.stack[r--], i = this.stack[r--]), u && !u(i, n, o)) return !1;
|
|
3027
|
-
n = this.stack[r--], i = this.stack[r--];
|
|
3028
|
-
}
|
|
3029
|
-
return !0;
|
|
3030
|
-
}
|
|
3031
|
-
findAncestor(t) {
|
|
3032
|
-
for (let r of ye(this, Be, yt).call(this)) if (t(r)) return r;
|
|
3033
|
-
}
|
|
3034
|
-
hasAncestor(t) {
|
|
3035
|
-
for (let r of ye(this, Be, yt).call(this)) if (t(r)) return !0;
|
|
3036
|
-
return !1;
|
|
3037
|
-
}
|
|
3038
|
-
};
|
|
3039
|
-
Ke = new WeakSet(), Ar = function (t) {
|
|
3040
|
-
let {
|
|
3041
|
-
stack: r
|
|
3042
|
-
} = this;
|
|
3043
|
-
for (let n = r.length - 1; n >= 0; n -= 2) if (!Array.isArray(r[n]) && --t < 0) return n;
|
|
3044
|
-
return -1;
|
|
3045
|
-
}, Be = new WeakSet(), yt = function* () {
|
|
3046
|
-
let {
|
|
3047
|
-
stack: t
|
|
3048
|
-
} = this;
|
|
3049
|
-
for (let r = t.length - 3; r >= 0; r -= 2) {
|
|
3050
|
-
let n = t[r];
|
|
3051
|
-
Array.isArray(n) || (yield n);
|
|
3052
|
-
}
|
|
3053
|
-
};
|
|
3054
|
-
var uu = br;
|
|
3055
|
-
var He = () => {};
|
|
3056
|
-
He.ok = He;
|
|
3057
|
-
He.strictEqual = He;
|
|
3058
|
-
var Je = He;
|
|
3059
|
-
function we(e) {
|
|
3060
|
-
return (t, r, n) => {
|
|
3061
|
-
let i = !!(n != null && n.backwards);
|
|
3062
|
-
if (r === !1) return !1;
|
|
3063
|
-
let {
|
|
3064
|
-
length: u
|
|
3065
|
-
} = t,
|
|
3066
|
-
o = r;
|
|
3067
|
-
for (; o >= 0 && o < u;) {
|
|
3068
|
-
let s = t.charAt(o);
|
|
3069
|
-
if (e instanceof RegExp) {
|
|
3070
|
-
if (!e.test(s)) return o;
|
|
3071
|
-
} else if (!e.includes(s)) return o;
|
|
3072
|
-
i ? o-- : o++;
|
|
3073
|
-
}
|
|
3074
|
-
return o === -1 || o === u ? o : !1;
|
|
3075
|
-
};
|
|
3076
|
-
}
|
|
3077
|
-
var iu = we(/\s/),
|
|
3078
|
-
S = we(" "),
|
|
3079
|
-
_t = we(",; "),
|
|
3080
|
-
xt = we(/[^\n\r]/);
|
|
3081
|
-
function Po(e, t, r) {
|
|
3082
|
-
let n = !!(r != null && r.backwards);
|
|
3083
|
-
if (t === !1) return !1;
|
|
3084
|
-
let i = e.charAt(t);
|
|
3085
|
-
if (n) {
|
|
3086
|
-
if (e.charAt(t - 1) === "\r" && i === `
|
|
3087
|
-
`) return t - 2;
|
|
3088
|
-
if (i === `
|
|
3089
|
-
` || i === "\r" || i === "\u2028" || i === "\u2029") return t - 1;
|
|
3090
|
-
} else {
|
|
3091
|
-
if (i === "\r" && e.charAt(t + 1) === `
|
|
3092
|
-
`) return t + 2;
|
|
3093
|
-
if (i === `
|
|
3094
|
-
` || i === "\r" || i === "\u2028" || i === "\u2029") return t + 1;
|
|
3095
|
-
}
|
|
3096
|
-
return t;
|
|
3097
|
-
}
|
|
3098
|
-
var q = Po;
|
|
3099
|
-
function Ro(e, t, r = {}) {
|
|
3100
|
-
let n = S(e, r.backwards ? t - 1 : t, r),
|
|
3101
|
-
i = q(e, n, r);
|
|
3102
|
-
return n !== i;
|
|
3103
|
-
}
|
|
3104
|
-
var W = Ro;
|
|
3105
|
-
function Io(e) {
|
|
3106
|
-
return Array.isArray(e) && e.length > 0;
|
|
3107
|
-
}
|
|
3108
|
-
var Br = Io;
|
|
3109
|
-
function Lo(e) {
|
|
3110
|
-
return e !== null && typeof e == "object";
|
|
3111
|
-
}
|
|
3112
|
-
var ou = Lo;
|
|
3113
|
-
function* wr(e, t) {
|
|
3114
|
-
let {
|
|
3115
|
-
getVisitorKeys: r,
|
|
3116
|
-
filter: n = () => !0
|
|
3117
|
-
} = t,
|
|
3118
|
-
i = u => ou(u) && n(u);
|
|
3119
|
-
for (let u of r(e)) {
|
|
3120
|
-
let o = e[u];
|
|
3121
|
-
if (Array.isArray(o)) for (let s of o) i(s) && (yield s);else i(o) && (yield o);
|
|
3122
|
-
}
|
|
3123
|
-
}
|
|
3124
|
-
function* su(e, t) {
|
|
3125
|
-
let r = [e];
|
|
3126
|
-
for (let n = 0; n < r.length; n++) {
|
|
3127
|
-
let i = r[n];
|
|
3128
|
-
for (let u of wr(i, t)) yield u, r.push(u);
|
|
3129
|
-
}
|
|
3130
|
-
}
|
|
3131
|
-
function jo(e) {
|
|
3132
|
-
let t = e.type || e.kind || "(unknown type)",
|
|
3133
|
-
r = String(e.name || e.id && (typeof e.id == "object" ? e.id.name : e.id) || e.key && (typeof e.key == "object" ? e.key.name : e.key) || e.value && (typeof e.value == "object" ? "" : String(e.value)) || e.operator || "");
|
|
3134
|
-
return r.length > 20 && (r = r.slice(0, 19) + "\u2026"), t + (r ? " " + r : "");
|
|
3135
|
-
}
|
|
3136
|
-
function Or(e, t) {
|
|
3137
|
-
(e.comments ?? (e.comments = [])).push(t), t.printed = !1, t.nodeDescription = jo(e);
|
|
3138
|
-
}
|
|
3139
|
-
function fe(e, t) {
|
|
3140
|
-
t.leading = !0, t.trailing = !1, Or(e, t);
|
|
3141
|
-
}
|
|
3142
|
-
function oe(e, t, r) {
|
|
3143
|
-
t.leading = !1, t.trailing = !1, r && (t.marker = r), Or(e, t);
|
|
3144
|
-
}
|
|
3145
|
-
function pe(e, t) {
|
|
3146
|
-
t.leading = !1, t.trailing = !0, Or(e, t);
|
|
3147
|
-
}
|
|
3148
|
-
var kr = new WeakMap();
|
|
3149
|
-
function bt(e, t) {
|
|
3150
|
-
if (kr.has(e)) return kr.get(e);
|
|
3151
|
-
let {
|
|
3152
|
-
printer: {
|
|
3153
|
-
getCommentChildNodes: r,
|
|
3154
|
-
canAttachComment: n,
|
|
3155
|
-
getVisitorKeys: i
|
|
3156
|
-
},
|
|
3157
|
-
locStart: u,
|
|
3158
|
-
locEnd: o
|
|
3159
|
-
} = t;
|
|
3160
|
-
if (!n) return [];
|
|
3161
|
-
let s = ((r == null ? void 0 : r(e, t)) ?? [...wr(e, {
|
|
3162
|
-
getVisitorKeys: ee(i)
|
|
3163
|
-
})]).flatMap(a => n(a) ? [a] : bt(a, t));
|
|
3164
|
-
return s.sort((a, D) => u(a) - u(D) || o(a) - o(D)), kr.set(e, s), s;
|
|
3165
|
-
}
|
|
3166
|
-
function Du(e, t, r, n) {
|
|
3167
|
-
let {
|
|
3168
|
-
locStart: i,
|
|
3169
|
-
locEnd: u
|
|
3170
|
-
} = r,
|
|
3171
|
-
o = i(t),
|
|
3172
|
-
s = u(t),
|
|
3173
|
-
a = bt(e, r),
|
|
3174
|
-
D,
|
|
3175
|
-
c,
|
|
3176
|
-
d = 0,
|
|
3177
|
-
l = a.length;
|
|
3178
|
-
for (; d < l;) {
|
|
3179
|
-
let F = d + l >> 1,
|
|
3180
|
-
f = a[F],
|
|
3181
|
-
p = i(f),
|
|
3182
|
-
m = u(f);
|
|
3183
|
-
if (p <= o && s <= m) return Du(f, t, r, f);
|
|
3184
|
-
if (m <= o) {
|
|
3185
|
-
D = f, d = F + 1;
|
|
3186
|
-
continue;
|
|
3187
|
-
}
|
|
3188
|
-
if (s <= p) {
|
|
3189
|
-
c = f, l = F;
|
|
3190
|
-
continue;
|
|
3191
|
-
}
|
|
3192
|
-
throw new Error("Comment location overlaps with node location");
|
|
3193
|
-
}
|
|
3194
|
-
if ((n == null ? void 0 : n.type) === "TemplateLiteral") {
|
|
3195
|
-
let {
|
|
3196
|
-
quasis: F
|
|
3197
|
-
} = n,
|
|
3198
|
-
f = vr(F, t, r);
|
|
3199
|
-
D && vr(F, D, r) !== f && (D = null), c && vr(F, c, r) !== f && (c = null);
|
|
3200
|
-
}
|
|
3201
|
-
return {
|
|
3202
|
-
enclosingNode: n,
|
|
3203
|
-
precedingNode: D,
|
|
3204
|
-
followingNode: c
|
|
3205
|
-
};
|
|
3206
|
-
}
|
|
3207
|
-
var Sr = () => !1;
|
|
3208
|
-
function cu(e, t) {
|
|
3209
|
-
let {
|
|
3210
|
-
comments: r
|
|
3211
|
-
} = e;
|
|
3212
|
-
if (delete e.comments, !Br(r) || !t.printer.canAttachComment) return;
|
|
3213
|
-
let n = [],
|
|
3214
|
-
{
|
|
3215
|
-
locStart: i,
|
|
3216
|
-
locEnd: u,
|
|
3217
|
-
printer: {
|
|
3218
|
-
experimentalFeatures: {
|
|
3219
|
-
avoidAstMutation: o = !1
|
|
3220
|
-
} = {},
|
|
3221
|
-
handleComments: s = {}
|
|
3222
|
-
},
|
|
3223
|
-
originalText: a
|
|
3224
|
-
} = t,
|
|
3225
|
-
{
|
|
3226
|
-
ownLine: D = Sr,
|
|
3227
|
-
endOfLine: c = Sr,
|
|
3228
|
-
remaining: d = Sr
|
|
3229
|
-
} = s,
|
|
3230
|
-
l = r.map((F, f) => ({
|
|
3231
|
-
...Du(e, F, t),
|
|
3232
|
-
comment: F,
|
|
3233
|
-
text: a,
|
|
3234
|
-
options: t,
|
|
3235
|
-
ast: e,
|
|
3236
|
-
isLastComment: r.length - 1 === f
|
|
3237
|
-
}));
|
|
3238
|
-
for (let [F, f] of l.entries()) {
|
|
3239
|
-
let {
|
|
3240
|
-
comment: p,
|
|
3241
|
-
precedingNode: m,
|
|
3242
|
-
enclosingNode: h,
|
|
3243
|
-
followingNode: C,
|
|
3244
|
-
text: g,
|
|
3245
|
-
options: y,
|
|
3246
|
-
ast: b,
|
|
3247
|
-
isLastComment: se
|
|
3248
|
-
} = f;
|
|
3249
|
-
if (y.parser === "json" || y.parser === "json5" || y.parser === "__js_expression" || y.parser === "__ts_expression" || y.parser === "__vue_expression" || y.parser === "__vue_ts_expression") {
|
|
3250
|
-
if (i(p) - i(b) <= 0) {
|
|
3251
|
-
fe(b, p);
|
|
3252
|
-
continue;
|
|
3253
|
-
}
|
|
3254
|
-
if (u(p) - u(b) >= 0) {
|
|
3255
|
-
pe(b, p);
|
|
3256
|
-
continue;
|
|
3257
|
-
}
|
|
3258
|
-
}
|
|
3259
|
-
let G;
|
|
3260
|
-
if (o ? G = [f] : (p.enclosingNode = h, p.precedingNode = m, p.followingNode = C, G = [p, g, y, b, se]), Yo(g, y, l, F)) p.placement = "ownLine", D(...G) || (C ? fe(C, p) : m ? pe(m, p) : h ? oe(h, p) : oe(b, p));else if (Mo(g, y, l, F)) p.placement = "endOfLine", c(...G) || (m ? pe(m, p) : C ? fe(C, p) : h ? oe(h, p) : oe(b, p));else if (p.placement = "remaining", !d(...G)) if (m && C) {
|
|
3261
|
-
let ae = n.length;
|
|
3262
|
-
ae > 0 && n[ae - 1].followingNode !== C && au(n, y), n.push(f);
|
|
3263
|
-
} else m ? pe(m, p) : C ? fe(C, p) : h ? oe(h, p) : oe(b, p);
|
|
3264
|
-
}
|
|
3265
|
-
if (au(n, t), !o) for (let F of r) delete F.precedingNode, delete F.enclosingNode, delete F.followingNode;
|
|
3266
|
-
}
|
|
3267
|
-
var lu = e => !/[\S\n\u2028\u2029]/.test(e);
|
|
3268
|
-
function Yo(e, t, r, n) {
|
|
3269
|
-
let {
|
|
3270
|
-
comment: i,
|
|
3271
|
-
precedingNode: u
|
|
3272
|
-
} = r[n],
|
|
3273
|
-
{
|
|
3274
|
-
locStart: o,
|
|
3275
|
-
locEnd: s
|
|
3276
|
-
} = t,
|
|
3277
|
-
a = o(i);
|
|
3278
|
-
if (u) for (let D = n - 1; D >= 0; D--) {
|
|
3279
|
-
let {
|
|
3280
|
-
comment: c,
|
|
3281
|
-
precedingNode: d
|
|
3282
|
-
} = r[D];
|
|
3283
|
-
if (d !== u || !lu(e.slice(s(c), a))) break;
|
|
3284
|
-
a = o(c);
|
|
3285
|
-
}
|
|
3286
|
-
return W(e, a, {
|
|
3287
|
-
backwards: !0
|
|
3288
|
-
});
|
|
3289
|
-
}
|
|
3290
|
-
function Mo(e, t, r, n) {
|
|
3291
|
-
let {
|
|
3292
|
-
comment: i,
|
|
3293
|
-
followingNode: u
|
|
3294
|
-
} = r[n],
|
|
3295
|
-
{
|
|
3296
|
-
locStart: o,
|
|
3297
|
-
locEnd: s
|
|
3298
|
-
} = t,
|
|
3299
|
-
a = s(i);
|
|
3300
|
-
if (u) for (let D = n + 1; D < r.length; D++) {
|
|
3301
|
-
let {
|
|
3302
|
-
comment: c,
|
|
3303
|
-
followingNode: d
|
|
3304
|
-
} = r[D];
|
|
3305
|
-
if (d !== u || !lu(e.slice(a, o(c)))) break;
|
|
3306
|
-
a = s(c);
|
|
3307
|
-
}
|
|
3308
|
-
return W(e, a);
|
|
3309
|
-
}
|
|
3310
|
-
function au(e, t) {
|
|
3311
|
-
var s, a;
|
|
3312
|
-
let r = e.length;
|
|
3313
|
-
if (r === 0) return;
|
|
3314
|
-
let {
|
|
3315
|
-
precedingNode: n,
|
|
3316
|
-
followingNode: i
|
|
3317
|
-
} = e[0],
|
|
3318
|
-
u = t.locStart(i),
|
|
3319
|
-
o;
|
|
3320
|
-
for (o = r; o > 0; --o) {
|
|
3321
|
-
let {
|
|
3322
|
-
comment: D,
|
|
3323
|
-
precedingNode: c,
|
|
3324
|
-
followingNode: d
|
|
3325
|
-
} = e[o - 1];
|
|
3326
|
-
Je.strictEqual(c, n), Je.strictEqual(d, i);
|
|
3327
|
-
let l = t.originalText.slice(t.locEnd(D), u);
|
|
3328
|
-
if (((a = (s = t.printer).isGap) == null ? void 0 : a.call(s, l, t)) ?? /^[\s(]*$/.test(l)) u = t.locStart(D);else break;
|
|
3329
|
-
}
|
|
3330
|
-
for (let [D, {
|
|
3331
|
-
comment: c
|
|
3332
|
-
}] of e.entries()) D < o ? pe(n, c) : fe(i, c);
|
|
3333
|
-
for (let D of [n, i]) D.comments && D.comments.length > 1 && D.comments.sort((c, d) => t.locStart(c) - t.locStart(d));
|
|
3334
|
-
e.length = 0;
|
|
3335
|
-
}
|
|
3336
|
-
function vr(e, t, r) {
|
|
3337
|
-
let n = r.locStart(t) - 1;
|
|
3338
|
-
for (let i = 1; i < e.length; ++i) if (n < r.locStart(e[i])) return i - 1;
|
|
3339
|
-
return 0;
|
|
3340
|
-
}
|
|
3341
|
-
function qo(e, t) {
|
|
3342
|
-
let r = t - 1;
|
|
3343
|
-
r = S(e, r, {
|
|
3344
|
-
backwards: !0
|
|
3345
|
-
}), r = q(e, r, {
|
|
3346
|
-
backwards: !0
|
|
3347
|
-
}), r = S(e, r, {
|
|
3348
|
-
backwards: !0
|
|
3349
|
-
});
|
|
3350
|
-
let n = q(e, r, {
|
|
3351
|
-
backwards: !0
|
|
3352
|
-
});
|
|
3353
|
-
return r !== n;
|
|
3354
|
-
}
|
|
3355
|
-
var Xe = qo;
|
|
3356
|
-
function fu(e, t) {
|
|
3357
|
-
let r = e.node;
|
|
3358
|
-
return r.printed = !0, t.printer.printComment(e, t);
|
|
3359
|
-
}
|
|
3360
|
-
function $o(e, t) {
|
|
3361
|
-
var c;
|
|
3362
|
-
let r = e.node,
|
|
3363
|
-
n = [fu(e, t)],
|
|
3364
|
-
{
|
|
3365
|
-
printer: i,
|
|
3366
|
-
originalText: u,
|
|
3367
|
-
locStart: o,
|
|
3368
|
-
locEnd: s
|
|
3369
|
-
} = t;
|
|
3370
|
-
if ((c = i.isBlockComment) == null ? void 0 : c.call(i, r)) {
|
|
3371
|
-
let d = W(u, s(r)) ? W(u, o(r), {
|
|
3372
|
-
backwards: !0
|
|
3373
|
-
}) ? X : ut : " ";
|
|
3374
|
-
n.push(d);
|
|
3375
|
-
} else n.push(X);
|
|
3376
|
-
let D = q(u, S(u, s(r)));
|
|
3377
|
-
return D !== !1 && W(u, D) && n.push(X), n;
|
|
3378
|
-
}
|
|
3379
|
-
function Vo(e, t, r) {
|
|
3380
|
-
var D;
|
|
3381
|
-
let n = e.node,
|
|
3382
|
-
i = fu(e, t),
|
|
3383
|
-
{
|
|
3384
|
-
printer: u,
|
|
3385
|
-
originalText: o,
|
|
3386
|
-
locStart: s
|
|
3387
|
-
} = t,
|
|
3388
|
-
a = (D = u.isBlockComment) == null ? void 0 : D.call(u, n);
|
|
3389
|
-
if (r != null && r.hasLineSuffix && !(r != null && r.isBlock) || W(o, s(n), {
|
|
3390
|
-
backwards: !0
|
|
3391
|
-
})) {
|
|
3392
|
-
let c = Xe(o, s(n));
|
|
3393
|
-
return {
|
|
3394
|
-
doc: Ne([X, c ? X : "", i]),
|
|
3395
|
-
isBlock: a,
|
|
3396
|
-
hasLineSuffix: !0
|
|
3397
|
-
};
|
|
3398
|
-
}
|
|
3399
|
-
return !a || r != null && r.hasLineSuffix ? {
|
|
3400
|
-
doc: [Ne([" ", i]), _e],
|
|
3401
|
-
isBlock: a,
|
|
3402
|
-
hasLineSuffix: !0
|
|
3403
|
-
} : {
|
|
3404
|
-
doc: [" ", i],
|
|
3405
|
-
isBlock: a,
|
|
3406
|
-
hasLineSuffix: !1
|
|
3407
|
-
};
|
|
3408
|
-
}
|
|
3409
|
-
function zo(e, t) {
|
|
3410
|
-
let r = e.node;
|
|
3411
|
-
if (!r) return {};
|
|
3412
|
-
let n = t[Symbol.for("printedComments")];
|
|
3413
|
-
if ((r.comments || []).filter(a => !n.has(a)).length === 0) return {
|
|
3414
|
-
leading: "",
|
|
3415
|
-
trailing: ""
|
|
3416
|
-
};
|
|
3417
|
-
let u = [],
|
|
3418
|
-
o = [],
|
|
3419
|
-
s;
|
|
3420
|
-
return e.each(() => {
|
|
3421
|
-
let a = e.node;
|
|
3422
|
-
if (n != null && n.has(a)) return;
|
|
3423
|
-
let {
|
|
3424
|
-
leading: D,
|
|
3425
|
-
trailing: c
|
|
3426
|
-
} = a;
|
|
3427
|
-
D ? u.push($o(e, t)) : c && (s = Vo(e, t, s), o.push(s.doc));
|
|
3428
|
-
}, "comments"), {
|
|
3429
|
-
leading: u,
|
|
3430
|
-
trailing: o
|
|
3431
|
-
};
|
|
3432
|
-
}
|
|
3433
|
-
function pu(e, t, r) {
|
|
3434
|
-
let {
|
|
3435
|
-
leading: n,
|
|
3436
|
-
trailing: i
|
|
3437
|
-
} = zo(e, r);
|
|
3438
|
-
return !n && !i ? t : Dt(t, u => [n, u, i]);
|
|
3439
|
-
}
|
|
3440
|
-
function du(e) {
|
|
3441
|
-
let {
|
|
3442
|
-
[Symbol.for("comments")]: t,
|
|
3443
|
-
[Symbol.for("printedComments")]: r
|
|
3444
|
-
} = e;
|
|
3445
|
-
for (let n of t) {
|
|
3446
|
-
if (!n.printed && !r.has(n)) throw new Error('Comment "' + n.value.trim() + '" was not printed. Please report this error!');
|
|
3447
|
-
delete n.printed;
|
|
3448
|
-
}
|
|
3449
|
-
}
|
|
3450
|
-
async function Fu(e, t, r, n, i) {
|
|
3451
|
-
let {
|
|
3452
|
-
embeddedLanguageFormatting: u,
|
|
3453
|
-
printer: {
|
|
3454
|
-
embed: o,
|
|
3455
|
-
hasPrettierIgnore: s = () => !1,
|
|
3456
|
-
getVisitorKeys: a
|
|
3457
|
-
}
|
|
3458
|
-
} = r;
|
|
3459
|
-
if (!o || u !== "auto") return;
|
|
3460
|
-
if (o.length > 2) throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/en/plugins.html#optional-embed");
|
|
3461
|
-
let D = ee(o.getVisitorKeys ?? a),
|
|
3462
|
-
c = [];
|
|
3463
|
-
F();
|
|
3464
|
-
let d = e.stack;
|
|
3465
|
-
for (let {
|
|
3466
|
-
print: f,
|
|
3467
|
-
node: p,
|
|
3468
|
-
pathStack: m
|
|
3469
|
-
} of c) try {
|
|
3470
|
-
e.stack = m;
|
|
3471
|
-
let h = await f(l, t, e, r);
|
|
3472
|
-
h && i.set(p, h);
|
|
3473
|
-
} catch (h) {
|
|
3474
|
-
if (globalThis.PRETTIER_DEBUG) throw h;
|
|
3475
|
-
}
|
|
3476
|
-
e.stack = d;
|
|
3477
|
-
function l(f, p) {
|
|
3478
|
-
return Wo(f, p, r, n);
|
|
3479
|
-
}
|
|
3480
|
-
function F() {
|
|
3481
|
-
let {
|
|
3482
|
-
node: f
|
|
3483
|
-
} = e;
|
|
3484
|
-
if (f === null || typeof f != "object" || s(e)) return;
|
|
3485
|
-
for (let m of D(f)) Array.isArray(f[m]) ? e.each(F, m) : e.call(F, m);
|
|
3486
|
-
let p = o(e, r);
|
|
3487
|
-
if (p) {
|
|
3488
|
-
if (typeof p == "function") {
|
|
3489
|
-
c.push({
|
|
3490
|
-
print: p,
|
|
3491
|
-
node: f,
|
|
3492
|
-
pathStack: [...e.stack]
|
|
3493
|
-
});
|
|
3494
|
-
return;
|
|
3495
|
-
}
|
|
3496
|
-
i.set(f, p);
|
|
3497
|
-
}
|
|
3498
|
-
}
|
|
3499
|
-
}
|
|
3500
|
-
async function Wo(e, t, r, n) {
|
|
3501
|
-
let i = await le({
|
|
3502
|
-
...r,
|
|
3503
|
-
...t,
|
|
3504
|
-
parentParser: r.parser,
|
|
3505
|
-
originalText: e
|
|
3506
|
-
}, {
|
|
3507
|
-
passThrough: !0
|
|
3508
|
-
}),
|
|
3509
|
-
{
|
|
3510
|
-
ast: u
|
|
3511
|
-
} = await Ee(e, i),
|
|
3512
|
-
o = await n(u, i);
|
|
3513
|
-
return at(o);
|
|
3514
|
-
}
|
|
3515
|
-
function Uo(e, t) {
|
|
3516
|
-
let {
|
|
3517
|
-
originalText: r,
|
|
3518
|
-
[Symbol.for("comments")]: n,
|
|
3519
|
-
locStart: i,
|
|
3520
|
-
locEnd: u,
|
|
3521
|
-
[Symbol.for("printedComments")]: o
|
|
3522
|
-
} = t,
|
|
3523
|
-
{
|
|
3524
|
-
node: s
|
|
3525
|
-
} = e,
|
|
3526
|
-
a = i(s),
|
|
3527
|
-
D = u(s);
|
|
3528
|
-
for (let c of n) i(c) >= a && u(c) <= D && o.add(c);
|
|
3529
|
-
return r.slice(a, D);
|
|
3530
|
-
}
|
|
3531
|
-
var hu = Uo;
|
|
3532
|
-
async function Ze(e, t) {
|
|
3533
|
-
({
|
|
3534
|
-
ast: e
|
|
3535
|
-
} = await Tr(e, t));
|
|
3536
|
-
let r = new Map(),
|
|
3537
|
-
n = new uu(e),
|
|
3538
|
-
u = new Map();
|
|
3539
|
-
await Fu(n, s, t, Ze, u);
|
|
3540
|
-
let o = await Eu(n, t, s, void 0, u);
|
|
3541
|
-
return du(t), o;
|
|
3542
|
-
function s(D, c) {
|
|
3543
|
-
return D === void 0 || D === n ? a(c) : Array.isArray(D) ? n.call(() => a(c), ...D) : n.call(() => a(c), D);
|
|
3544
|
-
}
|
|
3545
|
-
function a(D) {
|
|
3546
|
-
let c = n.node;
|
|
3547
|
-
if (c == null) return "";
|
|
3548
|
-
let d = c && typeof c == "object" && D === void 0;
|
|
3549
|
-
if (d && r.has(c)) return r.get(c);
|
|
3550
|
-
let l = Eu(n, t, s, D, u);
|
|
3551
|
-
return d && r.set(c, l), l;
|
|
3552
|
-
}
|
|
3553
|
-
}
|
|
3554
|
-
function Eu(e, t, r, n, i) {
|
|
3555
|
-
var a;
|
|
3556
|
-
let {
|
|
3557
|
-
node: u
|
|
3558
|
-
} = e,
|
|
3559
|
-
{
|
|
3560
|
-
printer: o
|
|
3561
|
-
} = t,
|
|
3562
|
-
s;
|
|
3563
|
-
return (a = o.hasPrettierIgnore) != null && a.call(o, e) ? s = hu(e, t) : i.has(u) ? s = i.get(u) : s = o.print(e, t, r, n), o.printComment && (!o.willPrintOwnComments || !o.willPrintOwnComments(e, t)) && (s = pu(e, s, t)), u === t.cursorNode && (s = Dt(s, D => [Re, D, Re])), s;
|
|
3564
|
-
}
|
|
3565
|
-
async function Tr(e, t) {
|
|
3566
|
-
let r = e.comments ?? [];
|
|
3567
|
-
t[Symbol.for("comments")] = r, t[Symbol.for("tokens")] = e.tokens ?? [], t[Symbol.for("printedComments")] = new Set(), cu(e, t);
|
|
3568
|
-
let {
|
|
3569
|
-
printer: {
|
|
3570
|
-
preprocess: n
|
|
3571
|
-
}
|
|
3572
|
-
} = t;
|
|
3573
|
-
return e = n ? await n(e, t) : e, {
|
|
3574
|
-
ast: e,
|
|
3575
|
-
comments: r
|
|
3576
|
-
};
|
|
3577
|
-
}
|
|
3578
|
-
var Ko = ({
|
|
3579
|
-
parser: e
|
|
3580
|
-
}) => e === "json" || e === "json5" || e === "json-stringify";
|
|
3581
|
-
function Ho(e, t) {
|
|
3582
|
-
let r = [e.node, ...e.parentNodes],
|
|
3583
|
-
n = new Set([t.node, ...t.parentNodes]);
|
|
3584
|
-
return r.find(i => yu.has(i.type) && n.has(i));
|
|
3585
|
-
}
|
|
3586
|
-
function Cu(e) {
|
|
3587
|
-
let t = e.length - 1;
|
|
3588
|
-
for (;;) {
|
|
3589
|
-
let r = e[t];
|
|
3590
|
-
if ((r == null ? void 0 : r.type) === "Program" || (r == null ? void 0 : r.type) === "File") t--;else break;
|
|
3591
|
-
}
|
|
3592
|
-
return e.slice(0, t + 1);
|
|
3593
|
-
}
|
|
3594
|
-
function Jo(e, t, {
|
|
3595
|
-
locStart: r,
|
|
3596
|
-
locEnd: n
|
|
3597
|
-
}) {
|
|
3598
|
-
let i = e.node,
|
|
3599
|
-
u = t.node;
|
|
3600
|
-
if (i === u) return {
|
|
3601
|
-
startNode: i,
|
|
3602
|
-
endNode: u
|
|
3603
|
-
};
|
|
3604
|
-
let o = r(e.node);
|
|
3605
|
-
for (let a of Cu(t.parentNodes)) if (r(a) >= o) u = a;else break;
|
|
3606
|
-
let s = n(t.node);
|
|
3607
|
-
for (let a of Cu(e.parentNodes)) {
|
|
3608
|
-
if (n(a) <= s) i = a;else break;
|
|
3609
|
-
if (i === u) break;
|
|
3610
|
-
}
|
|
3611
|
-
return {
|
|
3612
|
-
startNode: i,
|
|
3613
|
-
endNode: u
|
|
3614
|
-
};
|
|
3615
|
-
}
|
|
3616
|
-
function Nr(e, t, r, n, i = [], u) {
|
|
3617
|
-
let {
|
|
3618
|
-
locStart: o,
|
|
3619
|
-
locEnd: s
|
|
3620
|
-
} = r,
|
|
3621
|
-
a = o(e),
|
|
3622
|
-
D = s(e);
|
|
3623
|
-
if (!(t > D || t < a || u === "rangeEnd" && t === a || u === "rangeStart" && t === D)) {
|
|
3624
|
-
for (let c of bt(e, r)) {
|
|
3625
|
-
let d = Nr(c, t, r, n, [e, ...i], u);
|
|
3626
|
-
if (d) return d;
|
|
3627
|
-
}
|
|
3628
|
-
if (!n || n(e, i[0])) return {
|
|
3629
|
-
node: e,
|
|
3630
|
-
parentNodes: i
|
|
3631
|
-
};
|
|
3632
|
-
}
|
|
3633
|
-
}
|
|
3634
|
-
function Xo(e, t) {
|
|
3635
|
-
return t !== "DeclareExportDeclaration" && e !== "TypeParameterDeclaration" && (e === "Directive" || e === "TypeAlias" || e === "TSExportAssignment" || e.startsWith("Declare") || e.startsWith("TSDeclare") || e.endsWith("Statement") || e.endsWith("Declaration"));
|
|
3636
|
-
}
|
|
3637
|
-
var yu = new Set(["JsonRoot", "ObjectExpression", "ArrayExpression", "StringLiteral", "NumericLiteral", "BooleanLiteral", "NullLiteral", "UnaryExpression", "TemplateLiteral"]),
|
|
3638
|
-
Zo = new Set(["OperationDefinition", "FragmentDefinition", "VariableDefinition", "TypeExtensionDefinition", "ObjectTypeDefinition", "FieldDefinition", "DirectiveDefinition", "EnumTypeDefinition", "EnumValueDefinition", "InputValueDefinition", "InputObjectTypeDefinition", "SchemaDefinition", "OperationTypeDefinition", "InterfaceTypeDefinition", "UnionTypeDefinition", "ScalarTypeDefinition"]);
|
|
3639
|
-
function gu(e, t, r) {
|
|
3640
|
-
if (!t) return !1;
|
|
3641
|
-
switch (e.parser) {
|
|
3642
|
-
case "flow":
|
|
3643
|
-
case "babel":
|
|
3644
|
-
case "babel-flow":
|
|
3645
|
-
case "babel-ts":
|
|
3646
|
-
case "typescript":
|
|
3647
|
-
case "acorn":
|
|
3648
|
-
case "espree":
|
|
3649
|
-
case "meriyah":
|
|
3650
|
-
case "__babel_estree":
|
|
3651
|
-
return Xo(t.type, r == null ? void 0 : r.type);
|
|
3652
|
-
case "json":
|
|
3653
|
-
case "json5":
|
|
3654
|
-
case "json-stringify":
|
|
3655
|
-
return yu.has(t.type);
|
|
3656
|
-
case "graphql":
|
|
3657
|
-
return Zo.has(t.kind);
|
|
3658
|
-
case "vue":
|
|
3659
|
-
return t.tag !== "root";
|
|
3660
|
-
}
|
|
3661
|
-
return !1;
|
|
3662
|
-
}
|
|
3663
|
-
function _u(e, t, r) {
|
|
3664
|
-
let {
|
|
3665
|
-
rangeStart: n,
|
|
3666
|
-
rangeEnd: i,
|
|
3667
|
-
locStart: u,
|
|
3668
|
-
locEnd: o
|
|
3669
|
-
} = t;
|
|
3670
|
-
Je.ok(i > n);
|
|
3671
|
-
let s = e.slice(n, i).search(/\S/),
|
|
3672
|
-
a = s === -1;
|
|
3673
|
-
if (!a) for (n += s; i > n && !/\S/.test(e[i - 1]); --i);
|
|
3674
|
-
let D = Nr(r, n, t, (F, f) => gu(t, F, f), [], "rangeStart"),
|
|
3675
|
-
c = a ? D : Nr(r, i, t, F => gu(t, F), [], "rangeEnd");
|
|
3676
|
-
if (!D || !c) return {
|
|
3677
|
-
rangeStart: 0,
|
|
3678
|
-
rangeEnd: 0
|
|
3679
|
-
};
|
|
3680
|
-
let d, l;
|
|
3681
|
-
if (Ko(t)) {
|
|
3682
|
-
let F = Ho(D, c);
|
|
3683
|
-
d = F, l = F;
|
|
3684
|
-
} else ({
|
|
3685
|
-
startNode: d,
|
|
3686
|
-
endNode: l
|
|
3687
|
-
} = Jo(D, c, t));
|
|
3688
|
-
return {
|
|
3689
|
-
rangeStart: Math.min(u(d), u(l)),
|
|
3690
|
-
rangeEnd: Math.max(o(d), o(l))
|
|
3691
|
-
};
|
|
3692
|
-
}
|
|
3693
|
-
function Qo(e, t) {
|
|
3694
|
-
let {
|
|
3695
|
-
cursorOffset: r,
|
|
3696
|
-
locStart: n,
|
|
3697
|
-
locEnd: i
|
|
3698
|
-
} = t,
|
|
3699
|
-
u = ee(t.printer.getVisitorKeys),
|
|
3700
|
-
o = a => n(a) <= r && i(a) >= r,
|
|
3701
|
-
s = e;
|
|
3702
|
-
for (let a of su(e, {
|
|
3703
|
-
getVisitorKeys: u,
|
|
3704
|
-
filter: o
|
|
3705
|
-
})) s = a;
|
|
3706
|
-
return s;
|
|
3707
|
-
}
|
|
3708
|
-
var xu = Qo;
|
|
3709
|
-
var Ou = "\uFEFF",
|
|
3710
|
-
bu = Symbol("cursor");
|
|
3711
|
-
async function ku(e, t, r = 0) {
|
|
3712
|
-
if (!e || e.trim().length === 0) return {
|
|
3713
|
-
formatted: "",
|
|
3714
|
-
cursorOffset: -1,
|
|
3715
|
-
comments: []
|
|
3716
|
-
};
|
|
3717
|
-
let {
|
|
3718
|
-
ast: n,
|
|
3719
|
-
text: i
|
|
3720
|
-
} = await Ee(e, t);
|
|
3721
|
-
t.cursorOffset >= 0 && (t.cursorNode = xu(n, t));
|
|
3722
|
-
let u = await Ze(n, t);
|
|
3723
|
-
r > 0 && (u = ot([X, u], r, t.tabWidth));
|
|
3724
|
-
let o = xe(u, t);
|
|
3725
|
-
if (r > 0) {
|
|
3726
|
-
let a = o.formatted.trim();
|
|
3727
|
-
o.cursorNodeStart !== void 0 && (o.cursorNodeStart -= o.formatted.indexOf(a)), o.formatted = a + Le(t.endOfLine);
|
|
3728
|
-
}
|
|
3729
|
-
let s = t[Symbol.for("comments")];
|
|
3730
|
-
if (t.cursorOffset >= 0) {
|
|
3731
|
-
let a, D, c, d, l;
|
|
3732
|
-
if (t.cursorNode && o.cursorNodeText ? (a = t.locStart(t.cursorNode), D = i.slice(a, t.locEnd(t.cursorNode)), c = t.cursorOffset - a, d = o.cursorNodeStart, l = o.cursorNodeText) : (a = 0, D = i, c = t.cursorOffset, d = 0, l = o.formatted), D === l) return {
|
|
3733
|
-
formatted: o.formatted,
|
|
3734
|
-
cursorOffset: d + c,
|
|
3735
|
-
comments: s
|
|
3736
|
-
};
|
|
3737
|
-
let F = D.split("");
|
|
3738
|
-
F.splice(c, 0, bu);
|
|
3739
|
-
let f = l.split(""),
|
|
3740
|
-
p = (0, wu.diffArrays)(F, f),
|
|
3741
|
-
m = d;
|
|
3742
|
-
for (let h of p) if (h.removed) {
|
|
3743
|
-
if (h.value.includes(bu)) break;
|
|
3744
|
-
} else m += h.count;
|
|
3745
|
-
return {
|
|
3746
|
-
formatted: o.formatted,
|
|
3747
|
-
cursorOffset: m,
|
|
3748
|
-
comments: s
|
|
3749
|
-
};
|
|
3750
|
-
}
|
|
3751
|
-
return {
|
|
3752
|
-
formatted: o.formatted,
|
|
3753
|
-
cursorOffset: -1,
|
|
3754
|
-
comments: s
|
|
3755
|
-
};
|
|
3756
|
-
}
|
|
3757
|
-
async function es(e, t) {
|
|
3758
|
-
let {
|
|
3759
|
-
ast: r,
|
|
3760
|
-
text: n
|
|
3761
|
-
} = await Ee(e, t),
|
|
3762
|
-
{
|
|
3763
|
-
rangeStart: i,
|
|
3764
|
-
rangeEnd: u
|
|
3765
|
-
} = _u(n, t, r),
|
|
3766
|
-
o = n.slice(i, u),
|
|
3767
|
-
s = Math.min(i, n.lastIndexOf(`
|
|
3768
|
-
`, i) + 1),
|
|
3769
|
-
a = n.slice(s, i).match(/^\s*/)[0],
|
|
3770
|
-
D = be(a, t.tabWidth),
|
|
3771
|
-
c = await ku(o, {
|
|
3772
|
-
...t,
|
|
3773
|
-
rangeStart: 0,
|
|
3774
|
-
rangeEnd: Number.POSITIVE_INFINITY,
|
|
3775
|
-
cursorOffset: t.cursorOffset > i && t.cursorOffset <= u ? t.cursorOffset - i : -1,
|
|
3776
|
-
endOfLine: "lf"
|
|
3777
|
-
}, D),
|
|
3778
|
-
d = c.formatted.trimEnd(),
|
|
3779
|
-
{
|
|
3780
|
-
cursorOffset: l
|
|
3781
|
-
} = t;
|
|
3782
|
-
l > u ? l += d.length - o.length : c.cursorOffset >= 0 && (l = c.cursorOffset + i);
|
|
3783
|
-
let F = n.slice(0, i) + d + n.slice(u);
|
|
3784
|
-
if (t.endOfLine !== "lf") {
|
|
3785
|
-
let f = Le(t.endOfLine);
|
|
3786
|
-
l >= 0 && f === `\r
|
|
3787
|
-
` && (l += Rt(F.slice(0, l), `
|
|
3788
|
-
`)), F = De(!1, F, `
|
|
3789
|
-
`, f);
|
|
3790
|
-
}
|
|
3791
|
-
return {
|
|
3792
|
-
formatted: F,
|
|
3793
|
-
cursorOffset: l,
|
|
3794
|
-
comments: c.comments
|
|
3795
|
-
};
|
|
3796
|
-
}
|
|
3797
|
-
function Pr(e, t, r) {
|
|
3798
|
-
return typeof t != "number" || Number.isNaN(t) || t < 0 || t > e.length ? r : t;
|
|
3799
|
-
}
|
|
3800
|
-
function Au(e, t) {
|
|
3801
|
-
let {
|
|
3802
|
-
cursorOffset: r,
|
|
3803
|
-
rangeStart: n,
|
|
3804
|
-
rangeEnd: i
|
|
3805
|
-
} = t;
|
|
3806
|
-
return r = Pr(e, r, -1), n = Pr(e, n, 0), i = Pr(e, i, e.length), {
|
|
3807
|
-
...t,
|
|
3808
|
-
cursorOffset: r,
|
|
3809
|
-
rangeStart: n,
|
|
3810
|
-
rangeEnd: i
|
|
3811
|
-
};
|
|
3812
|
-
}
|
|
3813
|
-
function Su(e, t) {
|
|
3814
|
-
let {
|
|
3815
|
-
cursorOffset: r,
|
|
3816
|
-
rangeStart: n,
|
|
3817
|
-
rangeEnd: i,
|
|
3818
|
-
endOfLine: u
|
|
3819
|
-
} = Au(e, t),
|
|
3820
|
-
o = e.charAt(0) === Ou;
|
|
3821
|
-
if (o && (e = e.slice(1), r--, n--, i--), u === "auto" && (u = tn(e)), e.includes("\r")) {
|
|
3822
|
-
let s = a => Rt(e.slice(0, Math.max(a, 0)), `\r
|
|
3823
|
-
`);
|
|
3824
|
-
r -= s(r), n -= s(n), i -= s(i), e = rn(e);
|
|
3825
|
-
}
|
|
3826
|
-
return {
|
|
3827
|
-
hasBOM: o,
|
|
3828
|
-
text: e,
|
|
3829
|
-
options: Au(e, {
|
|
3830
|
-
...t,
|
|
3831
|
-
cursorOffset: r,
|
|
3832
|
-
rangeStart: n,
|
|
3833
|
-
rangeEnd: i,
|
|
3834
|
-
endOfLine: u
|
|
3835
|
-
})
|
|
3836
|
-
};
|
|
3837
|
-
}
|
|
3838
|
-
async function Bu(e, t) {
|
|
3839
|
-
let r = await Ct(t);
|
|
3840
|
-
return !r.hasPragma || r.hasPragma(e);
|
|
3841
|
-
}
|
|
3842
|
-
async function Rr(e, t) {
|
|
3843
|
-
let {
|
|
3844
|
-
hasBOM: r,
|
|
3845
|
-
text: n,
|
|
3846
|
-
options: i
|
|
3847
|
-
} = Su(e, await le(t));
|
|
3848
|
-
if (i.rangeStart >= i.rangeEnd && n !== "" || i.requirePragma && !(await Bu(n, i))) return {
|
|
3849
|
-
formatted: e,
|
|
3850
|
-
cursorOffset: t.cursorOffset,
|
|
3851
|
-
comments: []
|
|
3852
|
-
};
|
|
3853
|
-
let u;
|
|
3854
|
-
return i.rangeStart > 0 || i.rangeEnd < n.length ? u = await es(n, i) : (!i.requirePragma && i.insertPragma && i.printer.insertPragma && !(await Bu(n, i)) && (n = i.printer.insertPragma(n)), u = await ku(n, i)), r && (u.formatted = Ou + u.formatted, u.cursorOffset >= 0 && u.cursorOffset++), u;
|
|
3855
|
-
}
|
|
3856
|
-
async function vu(e, t, r) {
|
|
3857
|
-
let {
|
|
3858
|
-
text: n,
|
|
3859
|
-
options: i
|
|
3860
|
-
} = Su(e, await le(t)),
|
|
3861
|
-
u = await Ee(n, i);
|
|
3862
|
-
return r && (r.preprocessForPrint && (u.ast = await Tr(u.ast, i)), r.massage && (u.ast = Jn(u.ast, i))), u;
|
|
3863
|
-
}
|
|
3864
|
-
async function Tu(e, t) {
|
|
3865
|
-
t = await le(t);
|
|
3866
|
-
let r = await Ze(e, t);
|
|
3867
|
-
return xe(r, t);
|
|
3868
|
-
}
|
|
3869
|
-
async function Nu(e, t) {
|
|
3870
|
-
let r = Fn(e),
|
|
3871
|
-
{
|
|
3872
|
-
formatted: n
|
|
3873
|
-
} = await Rr(r, {
|
|
3874
|
-
...t,
|
|
3875
|
-
parser: "__js_expression"
|
|
3876
|
-
});
|
|
3877
|
-
return n;
|
|
3878
|
-
}
|
|
3879
|
-
async function Pu(e, t) {
|
|
3880
|
-
t = await le(t);
|
|
3881
|
-
let {
|
|
3882
|
-
ast: r
|
|
3883
|
-
} = await Ee(e, t);
|
|
3884
|
-
return Ze(r, t);
|
|
3885
|
-
}
|
|
3886
|
-
async function Ru(e, t) {
|
|
3887
|
-
return xe(e, await le(t));
|
|
3888
|
-
}
|
|
3889
|
-
var Bt = {};
|
|
3890
|
-
ge(Bt, {
|
|
3891
|
-
addDanglingComment: () => oe,
|
|
3892
|
-
addLeadingComment: () => fe,
|
|
3893
|
-
addTrailingComment: () => pe,
|
|
3894
|
-
getAlignmentSize: () => be,
|
|
3895
|
-
getIndentSize: () => Lu,
|
|
3896
|
-
getMaxContinuousCount: () => Iu,
|
|
3897
|
-
getNextNonSpaceNonCommentCharacter: () => Mu,
|
|
3898
|
-
getNextNonSpaceNonCommentCharacterIndex: () => ps,
|
|
3899
|
-
getStringWidth: () => je,
|
|
3900
|
-
hasNewline: () => W,
|
|
3901
|
-
hasNewlineInRange: () => ju,
|
|
3902
|
-
hasSpaces: () => Yu,
|
|
3903
|
-
isNextLineEmpty: () => hs,
|
|
3904
|
-
isNextLineEmptyAfterIndex: () => At,
|
|
3905
|
-
isPreviousLineEmpty: () => Fs,
|
|
3906
|
-
makeString: () => qu,
|
|
3907
|
-
skip: () => we,
|
|
3908
|
-
skipEverythingButNewLine: () => xt,
|
|
3909
|
-
skipInlineComment: () => Oe,
|
|
3910
|
-
skipNewline: () => q,
|
|
3911
|
-
skipSpaces: () => S,
|
|
3912
|
-
skipToLineEnd: () => _t,
|
|
3913
|
-
skipTrailingComment: () => ke,
|
|
3914
|
-
skipWhitespace: () => iu
|
|
3915
|
-
});
|
|
3916
|
-
function rs(e, t) {
|
|
3917
|
-
if (t === !1) return !1;
|
|
3918
|
-
if (e.charAt(t) === "/" && e.charAt(t + 1) === "*") {
|
|
3919
|
-
for (let r = t + 2; r < e.length; ++r) if (e.charAt(r) === "*" && e.charAt(r + 1) === "/") return r + 2;
|
|
3920
|
-
}
|
|
3921
|
-
return t;
|
|
3922
|
-
}
|
|
3923
|
-
var Oe = rs;
|
|
3924
|
-
function ns(e, t) {
|
|
3925
|
-
return t === !1 ? !1 : e.charAt(t) === "/" && e.charAt(t + 1) === "/" ? xt(e, t) : t;
|
|
3926
|
-
}
|
|
3927
|
-
var ke = ns;
|
|
3928
|
-
function us(e, t) {
|
|
3929
|
-
let r = null,
|
|
3930
|
-
n = t;
|
|
3931
|
-
for (; n !== r;) r = n, n = S(e, n), n = Oe(e, n), n = ke(e, n), n = q(e, n);
|
|
3932
|
-
return n;
|
|
3933
|
-
}
|
|
3934
|
-
var Qe = us;
|
|
3935
|
-
function is(e, t) {
|
|
3936
|
-
let r = null,
|
|
3937
|
-
n = t;
|
|
3938
|
-
for (; n !== r;) r = n, n = _t(e, n), n = Oe(e, n), n = S(e, n);
|
|
3939
|
-
return n = ke(e, n), n = q(e, n), n !== !1 && W(e, n);
|
|
3940
|
-
}
|
|
3941
|
-
var At = is;
|
|
3942
|
-
function Ir(e) {
|
|
3943
|
-
if (typeof e != "string") throw new TypeError("Expected a string");
|
|
3944
|
-
return e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
3945
|
-
}
|
|
3946
|
-
function os(e, t) {
|
|
3947
|
-
let r = e.match(new RegExp(`(${Ir(t)})+`, "g"));
|
|
3948
|
-
return r === null ? 0 : r.reduce((n, i) => Math.max(n, i.length / t.length), 0);
|
|
3949
|
-
}
|
|
3950
|
-
var Iu = os;
|
|
3951
|
-
function ss(e, t) {
|
|
3952
|
-
let r = e.lastIndexOf(`
|
|
3953
|
-
`);
|
|
3954
|
-
return r === -1 ? 0 : be(e.slice(r + 1).match(/^[\t ]*/)[0], t);
|
|
3955
|
-
}
|
|
3956
|
-
var Lu = ss;
|
|
3957
|
-
function as(e, t, r) {
|
|
3958
|
-
for (let n = t; n < r; ++n) if (e.charAt(n) === `
|
|
3959
|
-
`) return !0;
|
|
3960
|
-
return !1;
|
|
3961
|
-
}
|
|
3962
|
-
var ju = as;
|
|
3963
|
-
function Ds(e, t, r = {}) {
|
|
3964
|
-
return S(e, r.backwards ? t - 1 : t, r) !== t;
|
|
3965
|
-
}
|
|
3966
|
-
var Yu = Ds;
|
|
3967
|
-
function cs(e, t) {
|
|
3968
|
-
let r = Qe(e, t);
|
|
3969
|
-
return r === !1 ? "" : e.charAt(r);
|
|
3970
|
-
}
|
|
3971
|
-
var Mu = cs;
|
|
3972
|
-
function ls(e, t, r) {
|
|
3973
|
-
let n = t === '"' ? "'" : '"',
|
|
3974
|
-
u = De(!1, e, /\\(.)|(["'])/gs, (o, s, a) => s === n ? s : a === t ? "\\" + a : a || (r && /^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(s) ? s : "\\" + s));
|
|
3975
|
-
return t + u + t;
|
|
3976
|
-
}
|
|
3977
|
-
var qu = ls;
|
|
3978
|
-
function fs(e, t, r) {
|
|
3979
|
-
return Qe(e, r(t));
|
|
3980
|
-
}
|
|
3981
|
-
function ps(e, t) {
|
|
3982
|
-
return arguments.length === 2 || typeof t == "number" ? Qe(e, t) : fs(...arguments);
|
|
3983
|
-
}
|
|
3984
|
-
function ds(e, t, r) {
|
|
3985
|
-
return Xe(e, r(t));
|
|
3986
|
-
}
|
|
3987
|
-
function Fs(e, t) {
|
|
3988
|
-
return arguments.length === 2 || typeof t == "number" ? Xe(e, t) : ds(...arguments);
|
|
3989
|
-
}
|
|
3990
|
-
function ms(e, t, r) {
|
|
3991
|
-
return At(e, r(t));
|
|
3992
|
-
}
|
|
3993
|
-
function hs(e, t) {
|
|
3994
|
-
return arguments.length === 2 || typeof t == "number" ? At(e, t) : ms(...arguments);
|
|
3995
|
-
}
|
|
3996
|
-
var wt = {};
|
|
3997
|
-
ge(wt, {
|
|
3998
|
-
builders: () => Es,
|
|
3999
|
-
printer: () => Cs,
|
|
4000
|
-
utils: () => gs
|
|
4001
|
-
});
|
|
4002
|
-
var Es = {
|
|
4003
|
-
join: Ie,
|
|
4004
|
-
line: ut,
|
|
4005
|
-
softline: Qr,
|
|
4006
|
-
hardline: X,
|
|
4007
|
-
literalline: it,
|
|
4008
|
-
group: Nt,
|
|
4009
|
-
conditionalGroup: Kr,
|
|
4010
|
-
fill: nt,
|
|
4011
|
-
lineSuffix: Ne,
|
|
4012
|
-
lineSuffixBoundary: Xr,
|
|
4013
|
-
cursor: Re,
|
|
4014
|
-
breakParent: _e,
|
|
4015
|
-
ifBreak: Hr,
|
|
4016
|
-
trim: Zr,
|
|
4017
|
-
indent: Fe,
|
|
4018
|
-
indentIfBreak: Jr,
|
|
4019
|
-
align: de,
|
|
4020
|
-
addAlignmentToDoc: ot,
|
|
4021
|
-
markAsRoot: Gr,
|
|
4022
|
-
dedentToRoot: Wr,
|
|
4023
|
-
dedent: Ur,
|
|
4024
|
-
hardlineWithoutBreakParent: Pe,
|
|
4025
|
-
literallineWithoutBreakParent: Pt,
|
|
4026
|
-
label: en,
|
|
4027
|
-
concat: e => e
|
|
4028
|
-
},
|
|
4029
|
-
Cs = {
|
|
4030
|
-
printDocToString: xe
|
|
4031
|
-
},
|
|
4032
|
-
gs = {
|
|
4033
|
-
willBreak: Dn,
|
|
4034
|
-
traverseDoc: Te,
|
|
4035
|
-
findInDoc: st,
|
|
4036
|
-
mapDoc: Me,
|
|
4037
|
-
removeLines: ln,
|
|
4038
|
-
stripTrailingHardline: at,
|
|
4039
|
-
replaceEndOfLine: fn,
|
|
4040
|
-
canBreak: pn
|
|
4041
|
-
};
|
|
4042
|
-
var $u = "3.0.0";
|
|
4043
|
-
function Ce(e, t = 1) {
|
|
4044
|
-
return async (...r) => {
|
|
4045
|
-
let n = r[t] ?? {},
|
|
4046
|
-
i = n.plugins ?? [];
|
|
4047
|
-
return r[t] = {
|
|
4048
|
-
...n,
|
|
4049
|
-
plugins: Array.isArray(i) ? i : Object.values(i)
|
|
4050
|
-
}, e(...r);
|
|
4051
|
-
};
|
|
4052
|
-
}
|
|
4053
|
-
var Vu = Ce(Rr);
|
|
4054
|
-
async function zu(e, t) {
|
|
4055
|
-
let {
|
|
4056
|
-
formatted: r
|
|
4057
|
-
} = await Vu(e, {
|
|
4058
|
-
...t,
|
|
4059
|
-
cursorOffset: -1
|
|
4060
|
-
});
|
|
4061
|
-
return r;
|
|
4062
|
-
}
|
|
4063
|
-
async function ys(e, t) {
|
|
4064
|
-
return (await zu(e, t)) === e;
|
|
4065
|
-
}
|
|
4066
|
-
var _s = Ce(lt, 0),
|
|
4067
|
-
xs = {
|
|
4068
|
-
parse: Ce(vu),
|
|
4069
|
-
formatAST: Ce(Tu),
|
|
4070
|
-
formatDoc: Ce(Nu),
|
|
4071
|
-
printToDoc: Ce(Pu),
|
|
4072
|
-
printDocToString: Ce(Ru)
|
|
4073
|
-
};
|
|
4074
|
-
var bl = Lr;
|
|
4075
|
-
|
|
4076
|
-
export { xs as __debug, ys as check, bl as default, wt as doc, zu as format, Vu as formatWithCursor, _s as getSupportInfo, Bt as util, $u as version };
|