@flourish/sdk 4.2.2 → 5.0.0
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/README.md +14 -1
- package/RELEASE_NOTES.md +3 -2
- package/common/embed/embedding.d.ts +1 -1
- package/common/embed/embedding.js +6 -8
- package/common/package.json +2 -1
- package/common/tsconfig.sdk.tsbuildinfo +1 -1
- package/lib/cmd/login.js +12 -17
- package/lib/cmd/publish.js +2 -7
- package/lib/cmd/register.js +10 -13
- package/lib/sdk.js +4 -6
- package/package.json +23 -24
- package/rollup.config.mjs +29 -0
- package/server/index.js +2 -1
- package/server/views/index.html +5 -2
- package/site/embedded.js +2 -1
- package/site/images/icon-add-folder.svg +1 -1
- package/site/script.js +3 -2
- package/site/sdk.css +1 -1
- package/my_template/node_modules/.package-lock.json +0 -525
- package/my_template/node_modules/@babel/code-frame/LICENSE +0 -22
- package/my_template/node_modules/@babel/code-frame/README.md +0 -19
- package/my_template/node_modules/@babel/code-frame/lib/index.js +0 -157
- package/my_template/node_modules/@babel/code-frame/lib/index.js.map +0 -1
- package/my_template/node_modules/@babel/code-frame/package.json +0 -30
- package/my_template/node_modules/@babel/helper-validator-identifier/LICENSE +0 -22
- package/my_template/node_modules/@babel/helper-validator-identifier/README.md +0 -19
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js +0 -70
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/identifier.js.map +0 -1
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js +0 -57
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/index.js.map +0 -1
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js +0 -35
- package/my_template/node_modules/@babel/helper-validator-identifier/lib/keyword.js.map +0 -1
- package/my_template/node_modules/@babel/helper-validator-identifier/package.json +0 -28
- package/my_template/node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js +0 -73
- package/my_template/node_modules/@babel/highlight/LICENSE +0 -22
- package/my_template/node_modules/@babel/highlight/README.md +0 -19
- package/my_template/node_modules/@babel/highlight/lib/index.js +0 -105
- package/my_template/node_modules/@babel/highlight/lib/index.js.map +0 -1
- package/my_template/node_modules/@babel/highlight/package.json +0 -29
- package/my_template/node_modules/@types/estree/LICENSE +0 -21
- package/my_template/node_modules/@types/estree/README.md +0 -15
- package/my_template/node_modules/@types/estree/flow.d.ts +0 -167
- package/my_template/node_modules/@types/estree/index.d.ts +0 -683
- package/my_template/node_modules/@types/estree/package.json +0 -26
- package/my_template/node_modules/@types/node/LICENSE +0 -21
- package/my_template/node_modules/@types/node/README.md +0 -15
- package/my_template/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/my_template/node_modules/@types/node/assert.d.ts +0 -996
- package/my_template/node_modules/@types/node/async_hooks.d.ts +0 -539
- package/my_template/node_modules/@types/node/buffer.d.ts +0 -2362
- package/my_template/node_modules/@types/node/child_process.d.ts +0 -1540
- package/my_template/node_modules/@types/node/cluster.d.ts +0 -432
- package/my_template/node_modules/@types/node/console.d.ts +0 -415
- package/my_template/node_modules/@types/node/constants.d.ts +0 -19
- package/my_template/node_modules/@types/node/crypto.d.ts +0 -4456
- package/my_template/node_modules/@types/node/dgram.d.ts +0 -586
- package/my_template/node_modules/@types/node/diagnostics_channel.d.ts +0 -191
- package/my_template/node_modules/@types/node/dns/promises.d.ts +0 -425
- package/my_template/node_modules/@types/node/dns.d.ts +0 -809
- package/my_template/node_modules/@types/node/dom-events.d.ts +0 -122
- package/my_template/node_modules/@types/node/domain.d.ts +0 -170
- package/my_template/node_modules/@types/node/events.d.ts +0 -879
- package/my_template/node_modules/@types/node/fs/promises.d.ts +0 -1239
- package/my_template/node_modules/@types/node/fs.d.ts +0 -4291
- package/my_template/node_modules/@types/node/globals.d.ts +0 -385
- package/my_template/node_modules/@types/node/globals.global.d.ts +0 -1
- package/my_template/node_modules/@types/node/http.d.ts +0 -1888
- package/my_template/node_modules/@types/node/http2.d.ts +0 -2382
- package/my_template/node_modules/@types/node/https.d.ts +0 -550
- package/my_template/node_modules/@types/node/index.d.ts +0 -88
- package/my_template/node_modules/@types/node/inspector.d.ts +0 -2747
- package/my_template/node_modules/@types/node/module.d.ts +0 -301
- package/my_template/node_modules/@types/node/net.d.ts +0 -949
- package/my_template/node_modules/@types/node/os.d.ts +0 -478
- package/my_template/node_modules/@types/node/package.json +0 -230
- package/my_template/node_modules/@types/node/path.d.ts +0 -191
- package/my_template/node_modules/@types/node/perf_hooks.d.ts +0 -639
- package/my_template/node_modules/@types/node/process.d.ts +0 -1539
- package/my_template/node_modules/@types/node/punycode.d.ts +0 -117
- package/my_template/node_modules/@types/node/querystring.d.ts +0 -141
- package/my_template/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/my_template/node_modules/@types/node/readline.d.ts +0 -539
- package/my_template/node_modules/@types/node/repl.d.ts +0 -430
- package/my_template/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/my_template/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/my_template/node_modules/@types/node/stream/web.d.ts +0 -350
- package/my_template/node_modules/@types/node/stream.d.ts +0 -1701
- package/my_template/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/my_template/node_modules/@types/node/test.d.ts +0 -1382
- package/my_template/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/my_template/node_modules/@types/node/timers.d.ts +0 -240
- package/my_template/node_modules/@types/node/tls.d.ts +0 -1210
- package/my_template/node_modules/@types/node/trace_events.d.ts +0 -182
- package/my_template/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/my_template/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/my_template/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/my_template/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2362
- package/my_template/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/my_template/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/my_template/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/my_template/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/my_template/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4455
- package/my_template/node_modules/@types/node/ts4.8/dgram.d.ts +0 -586
- package/my_template/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -191
- package/my_template/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/my_template/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/my_template/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/my_template/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/my_template/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/my_template/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/my_template/node_modules/@types/node/ts4.8/fs.d.ts +0 -4291
- package/my_template/node_modules/@types/node/ts4.8/globals.d.ts +0 -385
- package/my_template/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/my_template/node_modules/@types/node/ts4.8/http.d.ts +0 -1888
- package/my_template/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/my_template/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/my_template/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/my_template/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/my_template/node_modules/@types/node/ts4.8/module.d.ts +0 -301
- package/my_template/node_modules/@types/node/ts4.8/net.d.ts +0 -949
- package/my_template/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/my_template/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/my_template/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -639
- package/my_template/node_modules/@types/node/ts4.8/process.d.ts +0 -1539
- package/my_template/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/my_template/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/my_template/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/my_template/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/my_template/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/my_template/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/my_template/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/my_template/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -350
- package/my_template/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/my_template/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/my_template/node_modules/@types/node/ts4.8/test.d.ts +0 -1382
- package/my_template/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/my_template/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/my_template/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/my_template/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/my_template/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/my_template/node_modules/@types/node/ts4.8/url.d.ts +0 -927
- package/my_template/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/my_template/node_modules/@types/node/ts4.8/v8.d.ts +0 -635
- package/my_template/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/my_template/node_modules/@types/node/ts4.8/wasi.d.ts +0 -158
- package/my_template/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/my_template/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/my_template/node_modules/@types/node/tty.d.ts +0 -208
- package/my_template/node_modules/@types/node/url.d.ts +0 -927
- package/my_template/node_modules/@types/node/util.d.ts +0 -2183
- package/my_template/node_modules/@types/node/v8.d.ts +0 -635
- package/my_template/node_modules/@types/node/vm.d.ts +0 -903
- package/my_template/node_modules/@types/node/wasi.d.ts +0 -158
- package/my_template/node_modules/@types/node/worker_threads.d.ts +0 -691
- package/my_template/node_modules/@types/node/zlib.d.ts +0 -517
- package/my_template/node_modules/@types/resolve/LICENSE +0 -21
- package/my_template/node_modules/@types/resolve/README.md +0 -16
- package/my_template/node_modules/@types/resolve/index.d.ts +0 -113
- package/my_template/node_modules/@types/resolve/package.json +0 -29
- package/my_template/node_modules/acorn/CHANGELOG.md +0 -620
- package/my_template/node_modules/acorn/LICENSE +0 -21
- package/my_template/node_modules/acorn/README.md +0 -269
- package/my_template/node_modules/acorn/bin/acorn +0 -4
- package/my_template/node_modules/acorn/dist/acorn.d.ts +0 -209
- package/my_template/node_modules/acorn/dist/acorn.js +0 -5186
- package/my_template/node_modules/acorn/dist/acorn.js.map +0 -1
- package/my_template/node_modules/acorn/dist/acorn.mjs +0 -5155
- package/my_template/node_modules/acorn/dist/acorn.mjs.d.ts +0 -2
- package/my_template/node_modules/acorn/dist/acorn.mjs.map +0 -1
- package/my_template/node_modules/acorn/dist/bin.js +0 -64
- package/my_template/node_modules/acorn/package.json +0 -35
- package/my_template/node_modules/amdefine/LICENSE +0 -58
- package/my_template/node_modules/amdefine/README.md +0 -171
- package/my_template/node_modules/amdefine/amdefine.js +0 -301
- package/my_template/node_modules/amdefine/intercept.js +0 -36
- package/my_template/node_modules/amdefine/package.json +0 -16
- package/my_template/node_modules/ansi-styles/index.js +0 -165
- package/my_template/node_modules/ansi-styles/license +0 -9
- package/my_template/node_modules/ansi-styles/package.json +0 -56
- package/my_template/node_modules/ansi-styles/readme.md +0 -147
- package/my_template/node_modules/builtin-modules/builtin-modules.json +0 -43
- package/my_template/node_modules/builtin-modules/index.d.ts +0 -14
- package/my_template/node_modules/builtin-modules/index.js +0 -11
- package/my_template/node_modules/builtin-modules/license +0 -9
- package/my_template/node_modules/builtin-modules/package.json +0 -44
- package/my_template/node_modules/builtin-modules/readme.md +0 -44
- package/my_template/node_modules/builtin-modules/static.d.ts +0 -14
- package/my_template/node_modules/builtin-modules/static.js +0 -2
- package/my_template/node_modules/chalk/index.js +0 -228
- package/my_template/node_modules/chalk/index.js.flow +0 -93
- package/my_template/node_modules/chalk/license +0 -9
- package/my_template/node_modules/chalk/package.json +0 -71
- package/my_template/node_modules/chalk/readme.md +0 -314
- package/my_template/node_modules/chalk/templates.js +0 -128
- package/my_template/node_modules/chalk/types/index.d.ts +0 -97
- package/my_template/node_modules/clean-css/History.md +0 -1138
- package/my_template/node_modules/clean-css/LICENSE +0 -19
- package/my_template/node_modules/clean-css/README.md +0 -369
- package/my_template/node_modules/clean-css/bin/cleancss +0 -184
- package/my_template/node_modules/clean-css/index.js +0 -1
- package/my_template/node_modules/clean-css/lib/clean.js +0 -231
- package/my_template/node_modules/clean-css/lib/colors/hex-name-shortener.js +0 -186
- package/my_template/node_modules/clean-css/lib/colors/hsl.js +0 -67
- package/my_template/node_modules/clean-css/lib/colors/rgb.js +0 -16
- package/my_template/node_modules/clean-css/lib/imports/inliner.js +0 -399
- package/my_template/node_modules/clean-css/lib/properties/break-up.js +0 -335
- package/my_template/node_modules/clean-css/lib/properties/can-override.js +0 -142
- package/my_template/node_modules/clean-css/lib/properties/clone.js +0 -26
- package/my_template/node_modules/clean-css/lib/properties/compactable.js +0 -285
- package/my_template/node_modules/clean-css/lib/properties/every-combination.js +0 -28
- package/my_template/node_modules/clean-css/lib/properties/has-inherit.js +0 -10
- package/my_template/node_modules/clean-css/lib/properties/invalid-property-error.js +0 -10
- package/my_template/node_modules/clean-css/lib/properties/optimizer.js +0 -215
- package/my_template/node_modules/clean-css/lib/properties/override-compactor.js +0 -384
- package/my_template/node_modules/clean-css/lib/properties/populate-components.js +0 -32
- package/my_template/node_modules/clean-css/lib/properties/remove-unused.js +0 -10
- package/my_template/node_modules/clean-css/lib/properties/restore-from-optimizing.js +0 -60
- package/my_template/node_modules/clean-css/lib/properties/restore.js +0 -232
- package/my_template/node_modules/clean-css/lib/properties/shorthand-compactor.js +0 -134
- package/my_template/node_modules/clean-css/lib/properties/validator.js +0 -197
- package/my_template/node_modules/clean-css/lib/properties/vendor-prefixes.js +0 -26
- package/my_template/node_modules/clean-css/lib/properties/wrap-for-optimizing.js +0 -118
- package/my_template/node_modules/clean-css/lib/selectors/advanced.js +0 -86
- package/my_template/node_modules/clean-css/lib/selectors/clean-up.js +0 -89
- package/my_template/node_modules/clean-css/lib/selectors/extractor.js +0 -69
- package/my_template/node_modules/clean-css/lib/selectors/is-special.js +0 -5
- package/my_template/node_modules/clean-css/lib/selectors/merge-adjacent.js +0 -35
- package/my_template/node_modules/clean-css/lib/selectors/merge-media-queries.js +0 -64
- package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-body.js +0 -61
- package/my_template/node_modules/clean-css/lib/selectors/merge-non-adjacent-by-selector.js +0 -76
- package/my_template/node_modules/clean-css/lib/selectors/reduce-non-adjacent.js +0 -172
- package/my_template/node_modules/clean-css/lib/selectors/remove-duplicate-media-queries.js +0 -21
- package/my_template/node_modules/clean-css/lib/selectors/remove-duplicates.js +0 -41
- package/my_template/node_modules/clean-css/lib/selectors/reorderable.js +0 -99
- package/my_template/node_modules/clean-css/lib/selectors/restructure.js +0 -369
- package/my_template/node_modules/clean-css/lib/selectors/simple.js +0 -454
- package/my_template/node_modules/clean-css/lib/source-maps/track.js +0 -119
- package/my_template/node_modules/clean-css/lib/stringifier/helpers.js +0 -167
- package/my_template/node_modules/clean-css/lib/stringifier/one-time.js +0 -50
- package/my_template/node_modules/clean-css/lib/stringifier/simple.js +0 -22
- package/my_template/node_modules/clean-css/lib/stringifier/source-maps.js +0 -96
- package/my_template/node_modules/clean-css/lib/text/comments-processor.js +0 -131
- package/my_template/node_modules/clean-css/lib/text/escape-store.js +0 -53
- package/my_template/node_modules/clean-css/lib/text/expressions-processor.js +0 -117
- package/my_template/node_modules/clean-css/lib/text/free-text-processor.js +0 -98
- package/my_template/node_modules/clean-css/lib/text/urls-processor.js +0 -75
- package/my_template/node_modules/clean-css/lib/tokenizer/extract-properties.js +0 -193
- package/my_template/node_modules/clean-css/lib/tokenizer/extract-selectors.js +0 -17
- package/my_template/node_modules/clean-css/lib/tokenizer/tokenize.js +0 -297
- package/my_template/node_modules/clean-css/lib/urls/rebase.js +0 -30
- package/my_template/node_modules/clean-css/lib/urls/reduce.js +0 -154
- package/my_template/node_modules/clean-css/lib/urls/rewrite.js +0 -107
- package/my_template/node_modules/clean-css/lib/utils/clone-array.js +0 -12
- package/my_template/node_modules/clean-css/lib/utils/compatibility.js +0 -162
- package/my_template/node_modules/clean-css/lib/utils/input-source-map-tracker.js +0 -284
- package/my_template/node_modules/clean-css/lib/utils/object.js +0 -11
- package/my_template/node_modules/clean-css/lib/utils/quote-scanner.js +0 -119
- package/my_template/node_modules/clean-css/lib/utils/source-reader.js +0 -96
- package/my_template/node_modules/clean-css/lib/utils/source-tracker.js +0 -31
- package/my_template/node_modules/clean-css/lib/utils/split.js +0 -62
- package/my_template/node_modules/clean-css/node_modules/source-map/README.md +0 -510
- package/my_template/node_modules/clean-css/node_modules/source-map/build/assert-shim.js +0 -56
- package/my_template/node_modules/clean-css/node_modules/source-map/build/mini-require.js +0 -152
- package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-source-map.jsm +0 -21
- package/my_template/node_modules/clean-css/node_modules/source-map/build/prefix-utils.jsm +0 -18
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-browser.js +0 -8
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-source-map.jsm +0 -6
- package/my_template/node_modules/clean-css/node_modules/source-map/build/suffix-utils.jsm +0 -21
- package/my_template/node_modules/clean-css/node_modules/source-map/build/test-prefix.js +0 -8
- package/my_template/node_modules/clean-css/node_modules/source-map/build/test-suffix.js +0 -3
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/array-set.js +0 -107
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64-vlq.js +0 -146
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/base64.js +0 -73
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/binary-search.js +0 -117
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/mapping-list.js +0 -86
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/quick-sort.js +0 -120
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -1077
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-map-generator.js +0 -399
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/source-node.js +0 -414
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map/util.js +0 -370
- package/my_template/node_modules/clean-css/node_modules/source-map/lib/source-map.js +0 -8
- package/my_template/node_modules/clean-css/node_modules/source-map/package.json +0 -68
- package/my_template/node_modules/clean-css/package.json +0 -53
- package/my_template/node_modules/color-convert/CHANGELOG.md +0 -54
- package/my_template/node_modules/color-convert/LICENSE +0 -21
- package/my_template/node_modules/color-convert/README.md +0 -68
- package/my_template/node_modules/color-convert/conversions.js +0 -868
- package/my_template/node_modules/color-convert/index.js +0 -78
- package/my_template/node_modules/color-convert/package.json +0 -46
- package/my_template/node_modules/color-convert/route.js +0 -97
- package/my_template/node_modules/color-name/.eslintrc.json +0 -43
- package/my_template/node_modules/color-name/LICENSE +0 -8
- package/my_template/node_modules/color-name/README.md +0 -11
- package/my_template/node_modules/color-name/index.js +0 -152
- package/my_template/node_modules/color-name/package.json +0 -25
- package/my_template/node_modules/color-name/test.js +0 -7
- package/my_template/node_modules/commander/History.md +0 -256
- package/my_template/node_modules/commander/LICENSE +0 -22
- package/my_template/node_modules/commander/Readme.md +0 -342
- package/my_template/node_modules/commander/index.js +0 -1103
- package/my_template/node_modules/commander/package.json +0 -33
- package/my_template/node_modules/copy-anything/LICENSE +0 -21
- package/my_template/node_modules/copy-anything/README.md +0 -130
- package/my_template/node_modules/copy-anything/dist/index.cjs +0 -52
- package/my_template/node_modules/copy-anything/dist/index.es.js +0 -48
- package/my_template/node_modules/copy-anything/dist/types/index.d.ts +0 -15
- package/my_template/node_modules/copy-anything/package.json +0 -98
- package/my_template/node_modules/errno/.jshintrc +0 -59
- package/my_template/node_modules/errno/.travis.yml +0 -19
- package/my_template/node_modules/errno/README.md +0 -145
- package/my_template/node_modules/errno/build.js +0 -43
- package/my_template/node_modules/errno/cli.js +0 -22
- package/my_template/node_modules/errno/custom.js +0 -57
- package/my_template/node_modules/errno/errno.js +0 -313
- package/my_template/node_modules/errno/package.json +0 -33
- package/my_template/node_modules/errno/test.js +0 -88
- package/my_template/node_modules/escape-string-regexp/index.js +0 -11
- package/my_template/node_modules/escape-string-regexp/license +0 -21
- package/my_template/node_modules/escape-string-regexp/package.json +0 -41
- package/my_template/node_modules/escape-string-regexp/readme.md +0 -27
- package/my_template/node_modules/estree-walker/CHANGELOG.md +0 -55
- package/my_template/node_modules/estree-walker/README.md +0 -45
- package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js +0 -65
- package/my_template/node_modules/estree-walker/dist/estree-walker.umd.js.map +0 -1
- package/my_template/node_modules/estree-walker/index.d.ts +0 -27
- package/my_template/node_modules/estree-walker/package.json +0 -30
- package/my_template/node_modules/estree-walker/src/estree-walker.js +0 -51
- package/my_template/node_modules/function-bind/.eslintrc +0 -21
- package/my_template/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/my_template/node_modules/function-bind/.nycrc +0 -13
- package/my_template/node_modules/function-bind/CHANGELOG.md +0 -136
- package/my_template/node_modules/function-bind/LICENSE +0 -20
- package/my_template/node_modules/function-bind/README.md +0 -46
- package/my_template/node_modules/function-bind/implementation.js +0 -84
- package/my_template/node_modules/function-bind/index.js +0 -5
- package/my_template/node_modules/function-bind/package.json +0 -87
- package/my_template/node_modules/function-bind/test/.eslintrc +0 -9
- package/my_template/node_modules/function-bind/test/index.js +0 -252
- package/my_template/node_modules/graceful-fs/LICENSE +0 -15
- package/my_template/node_modules/graceful-fs/README.md +0 -143
- package/my_template/node_modules/graceful-fs/clone.js +0 -23
- package/my_template/node_modules/graceful-fs/graceful-fs.js +0 -448
- package/my_template/node_modules/graceful-fs/legacy-streams.js +0 -118
- package/my_template/node_modules/graceful-fs/package.json +0 -53
- package/my_template/node_modules/graceful-fs/polyfills.js +0 -355
- package/my_template/node_modules/graceful-readlink/.travis.yml +0 -5
- package/my_template/node_modules/graceful-readlink/LICENSE +0 -22
- package/my_template/node_modules/graceful-readlink/README.md +0 -17
- package/my_template/node_modules/graceful-readlink/index.js +0 -12
- package/my_template/node_modules/graceful-readlink/package.json +0 -18
- package/my_template/node_modules/has-flag/index.js +0 -8
- package/my_template/node_modules/has-flag/license +0 -9
- package/my_template/node_modules/has-flag/package.json +0 -44
- package/my_template/node_modules/has-flag/readme.md +0 -70
- package/my_template/node_modules/hasown/.eslintrc +0 -5
- package/my_template/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/hasown/.nycrc +0 -13
- package/my_template/node_modules/hasown/CHANGELOG.md +0 -20
- package/my_template/node_modules/hasown/LICENSE +0 -21
- package/my_template/node_modules/hasown/README.md +0 -40
- package/my_template/node_modules/hasown/index.d.ts +0 -3
- package/my_template/node_modules/hasown/index.d.ts.map +0 -1
- package/my_template/node_modules/hasown/index.js +0 -8
- package/my_template/node_modules/hasown/package.json +0 -91
- package/my_template/node_modules/hasown/tsconfig.json +0 -49
- package/my_template/node_modules/image-size/LICENSE +0 -9
- package/my_template/node_modules/image-size/Readme.md +0 -88
- package/my_template/node_modules/image-size/bin/image-size.js +0 -36
- package/my_template/node_modules/image-size/lib/detector.js +0 -19
- package/my_template/node_modules/image-size/lib/index.js +0 -105
- package/my_template/node_modules/image-size/lib/readUInt.js +0 -11
- package/my_template/node_modules/image-size/lib/types/bmp.js +0 -17
- package/my_template/node_modules/image-size/lib/types/dds.js +0 -18
- package/my_template/node_modules/image-size/lib/types/gif.js +0 -19
- package/my_template/node_modules/image-size/lib/types/jpg.js +0 -62
- package/my_template/node_modules/image-size/lib/types/png.js +0 -36
- package/my_template/node_modules/image-size/lib/types/psd.js +0 -17
- package/my_template/node_modules/image-size/lib/types/svg.js +0 -78
- package/my_template/node_modules/image-size/lib/types/tiff.js +0 -118
- package/my_template/node_modules/image-size/lib/types/webp.js +0 -69
- package/my_template/node_modules/image-size/lib/types.js +0 -13
- package/my_template/node_modules/image-size/package.json +0 -49
- package/my_template/node_modules/is-core-module/.eslintrc +0 -18
- package/my_template/node_modules/is-core-module/.nycrc +0 -9
- package/my_template/node_modules/is-core-module/CHANGELOG.md +0 -180
- package/my_template/node_modules/is-core-module/LICENSE +0 -20
- package/my_template/node_modules/is-core-module/README.md +0 -40
- package/my_template/node_modules/is-core-module/core.json +0 -158
- package/my_template/node_modules/is-core-module/index.js +0 -69
- package/my_template/node_modules/is-core-module/package.json +0 -73
- package/my_template/node_modules/is-core-module/test/index.js +0 -133
- package/my_template/node_modules/is-module/README.md +0 -41
- package/my_template/node_modules/is-module/component.json +0 -11
- package/my_template/node_modules/is-module/index.js +0 -11
- package/my_template/node_modules/is-module/package.json +0 -20
- package/my_template/node_modules/is-what/.babelrc +0 -3
- package/my_template/node_modules/is-what/.eslintignore +0 -9
- package/my_template/node_modules/is-what/.eslintrc.js +0 -18
- package/my_template/node_modules/is-what/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/is-what/.prettierrc +0 -9
- package/my_template/node_modules/is-what/.vscode/settings.json +0 -9
- package/my_template/node_modules/is-what/LICENSE +0 -21
- package/my_template/node_modules/is-what/README.md +0 -191
- package/my_template/node_modules/is-what/build.js +0 -60
- package/my_template/node_modules/is-what/dist/index.cjs.js +0 -364
- package/my_template/node_modules/is-what/dist/index.esm.js +0 -327
- package/my_template/node_modules/is-what/package.json +0 -86
- package/my_template/node_modules/is-what/src/index.ts +0 -395
- package/my_template/node_modules/is-what/test/ava.ts +0 -376
- package/my_template/node_modules/is-what/test/index.test.js +0 -15
- package/my_template/node_modules/is-what/tsconfig.json +0 -11
- package/my_template/node_modules/is-what/types/index.d.ts +0 -253
- package/my_template/node_modules/jest-worker/LICENSE +0 -21
- package/my_template/node_modules/jest-worker/README.md +0 -215
- package/my_template/node_modules/jest-worker/build/Farm.d.ts +0 -27
- package/my_template/node_modules/jest-worker/build/Farm.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/Farm.js +0 -179
- package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts +0 -14
- package/my_template/node_modules/jest-worker/build/WorkerPool.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/WorkerPool.js +0 -49
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts +0 -22
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/base/BaseWorkerPool.js +0 -134
- package/my_template/node_modules/jest-worker/build/index.d.ts +0 -46
- package/my_template/node_modules/jest-worker/build/index.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/index.js +0 -184
- package/my_template/node_modules/jest-worker/build/types.d.ts +0 -98
- package/my_template/node_modules/jest-worker/build/types.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/types.js +0 -43
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts +0 -47
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/ChildProcessWorker.js +0 -310
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts +0 -29
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/NodeThreadsWorker.js +0 -289
- package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts +0 -8
- package/my_template/node_modules/jest-worker/build/workers/processChild.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/processChild.js +0 -166
- package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts +0 -8
- package/my_template/node_modules/jest-worker/build/workers/threadChild.d.ts.map +0 -1
- package/my_template/node_modules/jest-worker/build/workers/threadChild.js +0 -176
- package/my_template/node_modules/jest-worker/node_modules/supports-color/browser.js +0 -5
- package/my_template/node_modules/jest-worker/node_modules/supports-color/index.js +0 -138
- package/my_template/node_modules/jest-worker/node_modules/supports-color/license +0 -9
- package/my_template/node_modules/jest-worker/node_modules/supports-color/package.json +0 -53
- package/my_template/node_modules/jest-worker/node_modules/supports-color/readme.md +0 -85
- package/my_template/node_modules/jest-worker/package.json +0 -29
- package/my_template/node_modules/js-tokens/CHANGELOG.md +0 -151
- package/my_template/node_modules/js-tokens/LICENSE +0 -21
- package/my_template/node_modules/js-tokens/README.md +0 -240
- package/my_template/node_modules/js-tokens/index.js +0 -23
- package/my_template/node_modules/js-tokens/package.json +0 -30
- package/my_template/node_modules/less/.eslintignore +0 -5
- package/my_template/node_modules/less/.eslintrc.json +0 -3
- package/my_template/node_modules/less/Gruntfile.js +0 -420
- package/my_template/node_modules/less/README.md +0 -13
- package/my_template/node_modules/less/bin/lessc +0 -633
- package/my_template/node_modules/less/bower.json +0 -22
- package/my_template/node_modules/less/dist/less.js +0 -11275
- package/my_template/node_modules/less/dist/less.min.js +0 -11
- package/my_template/node_modules/less/dist/less.min.js.map +0 -1
- package/my_template/node_modules/less/index.js +0 -1
- package/my_template/node_modules/less/lib/less/constants.js +0 -15
- package/my_template/node_modules/less/lib/less/constants.js.map +0 -1
- package/my_template/node_modules/less/lib/less/contexts.js +0 -171
- package/my_template/node_modules/less/lib/less/contexts.js.map +0 -1
- package/my_template/node_modules/less/lib/less/data/colors.js +0 -153
- package/my_template/node_modules/less/lib/less/data/colors.js.map +0 -1
- package/my_template/node_modules/less/lib/less/data/index.js +0 -9
- package/my_template/node_modules/less/lib/less/data/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/data/unit-conversions.js +0 -24
- package/my_template/node_modules/less/lib/less/data/unit-conversions.js.map +0 -1
- package/my_template/node_modules/less/lib/less/default-options.js +0 -57
- package/my_template/node_modules/less/lib/less/default-options.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js +0 -122
- package/my_template/node_modules/less/lib/less/environment/abstract-file-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js +0 -168
- package/my_template/node_modules/less/lib/less/environment/abstract-plugin-loader.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/environment-api.js +0 -28
- package/my_template/node_modules/less/lib/less/environment/environment-api.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/environment.js +0 -57
- package/my_template/node_modules/less/lib/less/environment/environment.js.map +0 -1
- package/my_template/node_modules/less/lib/less/environment/file-manager-api.js +0 -106
- package/my_template/node_modules/less/lib/less/environment/file-manager-api.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/boolean.js +0 -21
- package/my_template/node_modules/less/lib/less/functions/boolean.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/color-blending.js +0 -78
- package/my_template/node_modules/less/lib/less/functions/color-blending.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/color.js +0 -404
- package/my_template/node_modules/less/lib/less/functions/color.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/data-uri.js +0 -86
- package/my_template/node_modules/less/lib/less/functions/data-uri.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/default.js +0 -29
- package/my_template/node_modules/less/lib/less/functions/default.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/function-caller.js +0 -66
- package/my_template/node_modules/less/lib/less/functions/function-caller.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/function-registry.js +0 -36
- package/my_template/node_modules/less/lib/less/functions/function-registry.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/index.js +0 -35
- package/my_template/node_modules/less/lib/less/functions/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/list.js +0 -136
- package/my_template/node_modules/less/lib/less/functions/list.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/math-helper.js +0 -20
- package/my_template/node_modules/less/lib/less/functions/math-helper.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/math.js +0 -30
- package/my_template/node_modules/less/lib/less/functions/math.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/number.js +0 -98
- package/my_template/node_modules/less/lib/less/functions/number.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/string.js +0 -42
- package/my_template/node_modules/less/lib/less/functions/string.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/svg.js +0 -88
- package/my_template/node_modules/less/lib/less/functions/svg.js.map +0 -1
- package/my_template/node_modules/less/lib/less/functions/types.js +0 -75
- package/my_template/node_modules/less/lib/less/functions/types.js.map +0 -1
- package/my_template/node_modules/less/lib/less/import-manager.js +0 -196
- package/my_template/node_modules/less/lib/less/import-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less/index.js +0 -130
- package/my_template/node_modules/less/lib/less/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/less-error.js +0 -162
- package/my_template/node_modules/less/lib/less/less-error.js.map +0 -1
- package/my_template/node_modules/less/lib/less/logger.js +0 -37
- package/my_template/node_modules/less/lib/less/logger.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parse-tree.js +0 -69
- package/my_template/node_modules/less/lib/less/parse-tree.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parse.js +0 -108
- package/my_template/node_modules/less/lib/less/parse.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parser/chunker.js +0 -147
- package/my_template/node_modules/less/lib/less/parser/chunker.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parser/parser-input.js +0 -355
- package/my_template/node_modules/less/lib/less/parser/parser-input.js.map +0 -1
- package/my_template/node_modules/less/lib/less/parser/parser.js +0 -2262
- package/my_template/node_modules/less/lib/less/parser/parser.js.map +0 -1
- package/my_template/node_modules/less/lib/less/plugin-manager.js +0 -158
- package/my_template/node_modules/less/lib/less/plugin-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less/render.js +0 -64
- package/my_template/node_modules/less/lib/less/render.js.map +0 -1
- package/my_template/node_modules/less/lib/less/source-map-builder.js +0 -72
- package/my_template/node_modules/less/lib/less/source-map-builder.js.map +0 -1
- package/my_template/node_modules/less/lib/less/source-map-output.js +0 -140
- package/my_template/node_modules/less/lib/less/source-map-output.js.map +0 -1
- package/my_template/node_modules/less/lib/less/transform-tree.js +0 -93
- package/my_template/node_modules/less/lib/less/transform-tree.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/anonymous.js +0 -34
- package/my_template/node_modules/less/lib/less/tree/anonymous.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/assignment.js +0 -32
- package/my_template/node_modules/less/lib/less/tree/assignment.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/atrule.js +0 -146
- package/my_template/node_modules/less/lib/less/tree/atrule.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/attribute.js +0 -29
- package/my_template/node_modules/less/lib/less/tree/attribute.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/call.js +0 -104
- package/my_template/node_modules/less/lib/less/tree/call.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/color.js +0 -243
- package/my_template/node_modules/less/lib/less/tree/color.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/combinator.js +0 -29
- package/my_template/node_modules/less/lib/less/tree/combinator.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/comment.js +0 -28
- package/my_template/node_modules/less/lib/less/tree/comment.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/condition.js +0 -41
- package/my_template/node_modules/less/lib/less/tree/condition.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/debug-info.js +0 -37
- package/my_template/node_modules/less/lib/less/tree/debug-info.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/declaration.js +0 -118
- package/my_template/node_modules/less/lib/less/tree/declaration.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js +0 -47
- package/my_template/node_modules/less/lib/less/tree/detached-ruleset.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/dimension.js +0 -159
- package/my_template/node_modules/less/lib/less/tree/dimension.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/element.js +0 -64
- package/my_template/node_modules/less/lib/less/tree/element.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/expression.js +0 -90
- package/my_template/node_modules/less/lib/less/tree/expression.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/extend.js +0 -62
- package/my_template/node_modules/less/lib/less/tree/extend.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/import.js +0 -191
- package/my_template/node_modules/less/lib/less/tree/import.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/index.js +0 -56
- package/my_template/node_modules/less/lib/less/tree/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/javascript.js +0 -35
- package/my_template/node_modules/less/lib/less/tree/javascript.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/js-eval-node.js +0 -57
- package/my_template/node_modules/less/lib/less/tree/js-eval-node.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/keyword.js +0 -21
- package/my_template/node_modules/less/lib/less/tree/keyword.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/media.js +0 -152
- package/my_template/node_modules/less/lib/less/tree/media.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/mixin-call.js +0 -194
- package/my_template/node_modules/less/lib/less/tree/mixin-call.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/mixin-definition.js +0 -233
- package/my_template/node_modules/less/lib/less/tree/mixin-definition.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/namespace-value.js +0 -76
- package/my_template/node_modules/less/lib/less/tree/namespace-value.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/negative.js +0 -25
- package/my_template/node_modules/less/lib/less/tree/negative.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/node.js +0 -166
- package/my_template/node_modules/less/lib/less/tree/node.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/operation.js +0 -77
- package/my_template/node_modules/less/lib/less/tree/operation.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/paren.js +0 -21
- package/my_template/node_modules/less/lib/less/tree/paren.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/property.js +0 -62
- package/my_template/node_modules/less/lib/less/tree/property.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/quoted.js +0 -66
- package/my_template/node_modules/less/lib/less/tree/quoted.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/ruleset.js +0 -786
- package/my_template/node_modules/less/lib/less/tree/ruleset.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/selector.js +0 -126
- package/my_template/node_modules/less/lib/less/tree/selector.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js +0 -13
- package/my_template/node_modules/less/lib/less/tree/unicode-descriptor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/unit.js +0 -141
- package/my_template/node_modules/less/lib/less/tree/unit.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/url.js +0 -60
- package/my_template/node_modules/less/lib/less/tree/url.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/value.js +0 -43
- package/my_template/node_modules/less/lib/less/tree/value.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/variable-call.js +0 -44
- package/my_template/node_modules/less/lib/less/tree/variable-call.js.map +0 -1
- package/my_template/node_modules/less/lib/less/tree/variable.js +0 -61
- package/my_template/node_modules/less/lib/less/tree/variable.js.map +0 -1
- package/my_template/node_modules/less/lib/less/utils.js +0 -143
- package/my_template/node_modules/less/lib/less/utils.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js +0 -462
- package/my_template/node_modules/less/lib/less/visitors/extend-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js +0 -61
- package/my_template/node_modules/less/lib/less/visitors/import-sequencer.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/import-visitor.js +0 -202
- package/my_template/node_modules/less/lib/less/visitors/import-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/index.js +0 -20
- package/my_template/node_modules/less/lib/less/visitors/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js +0 -57
- package/my_template/node_modules/less/lib/less/visitors/join-selector-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js +0 -43
- package/my_template/node_modules/less/lib/less/visitors/set-tree-visibility-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js +0 -321
- package/my_template/node_modules/less/lib/less/visitors/to-css-visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less/visitors/visitor.js +0 -158
- package/my_template/node_modules/less/lib/less/visitors/visitor.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/add-default-options.js +0 -45
- package/my_template/node_modules/less/lib/less-browser/add-default-options.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/bootstrap.js +0 -64
- package/my_template/node_modules/less/lib/less-browser/bootstrap.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/browser.js +0 -80
- package/my_template/node_modules/less/lib/less-browser/browser.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/cache.js +0 -45
- package/my_template/node_modules/less/lib/less-browser/cache.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/error-reporting.js +0 -183
- package/my_template/node_modules/less/lib/less-browser/error-reporting.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/file-manager.js +0 -122
- package/my_template/node_modules/less/lib/less-browser/file-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/image-size.js +0 -30
- package/my_template/node_modules/less/lib/less-browser/image-size.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/index.js +0 -256
- package/my_template/node_modules/less/lib/less-browser/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/log-listener.js +0 -43
- package/my_template/node_modules/less/lib/less-browser/log-listener.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/plugin-loader.js +0 -42
- package/my_template/node_modules/less/lib/less-browser/plugin-loader.js.map +0 -1
- package/my_template/node_modules/less/lib/less-browser/utils.js +0 -29
- package/my_template/node_modules/less/lib/less-browser/utils.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/environment.js +0 -19
- package/my_template/node_modules/less/lib/less-node/environment.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/file-manager.js +0 -158
- package/my_template/node_modules/less/lib/less-node/file-manager.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/fs.js +0 -11
- package/my_template/node_modules/less/lib/less-node/fs.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/image-size.js +0 -54
- package/my_template/node_modules/less/lib/less-node/image-size.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/index.js +0 -28
- package/my_template/node_modules/less/lib/less-node/index.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/lessc-helper.js +0 -92
- package/my_template/node_modules/less/lib/less-node/lessc-helper.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/plugin-loader.js +0 -73
- package/my_template/node_modules/less/lib/less-node/plugin-loader.js.map +0 -1
- package/my_template/node_modules/less/lib/less-node/url-file-manager.js +0 -68
- package/my_template/node_modules/less/lib/less-node/url-file-manager.js.map +0 -1
- package/my_template/node_modules/less/package.json +0 -133
- package/my_template/node_modules/less/test/.eslintrc.json +0 -9
- package/my_template/node_modules/less/test/README.md +0 -3
- package/my_template/node_modules/less/test/browser/common.js +0 -230
- package/my_template/node_modules/less/test/browser/css/global-vars/simple.css +0 -3
- package/my_template/node_modules/less/test/browser/css/modify-vars/simple.css +0 -8
- package/my_template/node_modules/less/test/browser/css/plugin/plugin.css +0 -3
- package/my_template/node_modules/less/test/browser/css/postProcessor/postProcessor.css +0 -4
- package/my_template/node_modules/less/test/browser/css/relative-urls/urls.css +0 -36
- package/my_template/node_modules/less/test/browser/css/rewrite-urls/urls.css +0 -36
- package/my_template/node_modules/less/test/browser/css/rootpath/urls.css +0 -35
- package/my_template/node_modules/less/test/browser/css/rootpath-relative/urls.css +0 -35
- package/my_template/node_modules/less/test/browser/css/rootpath-rewrite-urls/urls.css +0 -35
- package/my_template/node_modules/less/test/browser/css/urls.css +0 -54
- package/my_template/node_modules/less/test/browser/generator/benchmark.config.js +0 -50
- package/my_template/node_modules/less/test/browser/generator/generate.js +0 -78
- package/my_template/node_modules/less/test/browser/generator/runner.config.js +0 -186
- package/my_template/node_modules/less/test/browser/generator/runner.js +0 -2
- package/my_template/node_modules/less/test/browser/generator/template.js +0 -83
- package/my_template/node_modules/less/test/browser/less/console-errors/test-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/console-errors/test-error.txt +0 -2
- package/my_template/node_modules/less/test/browser/less/errors/image-height-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/errors/image-height-error.txt +0 -4
- package/my_template/node_modules/less/test/browser/less/errors/image-size-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/errors/image-size-error.txt +0 -4
- package/my_template/node_modules/less/test/browser/less/errors/image-width-error.less +0 -3
- package/my_template/node_modules/less/test/browser/less/errors/image-width-error.txt +0 -4
- package/my_template/node_modules/less/test/browser/less/global-vars/simple.less +0 -3
- package/my_template/node_modules/less/test/browser/less/imports/urls.less +0 -4
- package/my_template/node_modules/less/test/browser/less/imports/urls2.less +0 -4
- package/my_template/node_modules/less/test/browser/less/modify-vars/imports/simple2.less +0 -4
- package/my_template/node_modules/less/test/browser/less/modify-vars/simple.less +0 -8
- package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/mixin-consumer.less +0 -5
- package/my_template/node_modules/less/test/browser/less/nested-gradient-with-svg-gradient/svg-gradient-mixin.less +0 -15
- package/my_template/node_modules/less/test/browser/less/plugin/plugin.js +0 -4
- package/my_template/node_modules/less/test/browser/less/plugin/plugin.less +0 -4
- package/my_template/node_modules/less/test/browser/less/postProcessor/postProcessor.less +0 -4
- package/my_template/node_modules/less/test/browser/less/relative-urls/urls.less +0 -34
- package/my_template/node_modules/less/test/browser/less/rewrite-urls/urls.less +0 -34
- package/my_template/node_modules/less/test/browser/less/rootpath/urls.less +0 -33
- package/my_template/node_modules/less/test/browser/less/rootpath-relative/urls.less +0 -33
- package/my_template/node_modules/less/test/browser/less/rootpath-rewrite-urls/urls.less +0 -33
- package/my_template/node_modules/less/test/browser/less/urls.less +0 -62
- package/my_template/node_modules/less/test/browser/runner-VisitorPlugin-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-VisitorPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-browser-options.js +0 -51
- package/my_template/node_modules/less/test/browser/runner-browser-spec.js +0 -12
- package/my_template/node_modules/less/test/browser/runner-console-errors.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-errors-options.js +0 -6
- package/my_template/node_modules/less/test/browser/runner-errors-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin-options.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-filemanagerPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-global-vars-options.js +0 -7
- package/my_template/node_modules/less/test/browser/runner-global-vars-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-legacy-options.js +0 -6
- package/my_template/node_modules/less/test/browser/runner-legacy-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-main-options.js +0 -17
- package/my_template/node_modules/less/test/browser/runner-main-spec.js +0 -7
- package/my_template/node_modules/less/test/browser/runner-modify-vars-options.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-modify-vars-spec.js +0 -33
- package/my_template/node_modules/less/test/browser/runner-no-js-errors-options.js +0 -4
- package/my_template/node_modules/less/test/browser/runner-no-js-errors-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-postProcessorPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-preProcessorPlugin.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-production-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-production-spec.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-relative-urls-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-relative-urls-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rewrite-urls-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rewrite-urls-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-options.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-relative-options.js +0 -4
- package/my_template/node_modules/less/test/browser/runner-rootpath-relative-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-options.js +0 -4
- package/my_template/node_modules/less/test/browser/runner-rootpath-rewrite-urls-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-rootpath-spec.js +0 -3
- package/my_template/node_modules/less/test/browser/runner-strict-units-options.js +0 -5
- package/my_template/node_modules/less/test/browser/runner-strict-units-spec.js +0 -3
- package/my_template/node_modules/less/test/index.js +0 -89
- package/my_template/node_modules/less/test/less-test.js +0 -535
- package/my_template/node_modules/less/test/modify-vars.js +0 -28
- package/my_template/node_modules/less/test/plugins/filemanager/index.js +0 -19
- package/my_template/node_modules/less/test/plugins/postprocess/index.js +0 -14
- package/my_template/node_modules/less/test/plugins/preprocess/index.js +0 -19
- package/my_template/node_modules/less/test/plugins/visitor/index.js +0 -24
- package/my_template/node_modules/less/test/sourcemaps/basic.json +0 -1
- package/my_template/node_modules/less/test/sourcemaps/custom-props.json +0 -1
- package/my_template/node_modules/less/test/sourcemaps/index.html +0 -17
- package/my_template/node_modules/less/test/sourcemaps-disable-annotation/basic.json +0 -1
- package/my_template/node_modules/less/test/test-es6.ts +0 -17
- package/my_template/node_modules/less/tsconfig.json +0 -13
- package/my_template/node_modules/less-plugin-clean-css/LICENSE +0 -201
- package/my_template/node_modules/less-plugin-clean-css/README.md +0 -33
- package/my_template/node_modules/less-plugin-clean-css/lib/clean-css-processor.js +0 -63
- package/my_template/node_modules/less-plugin-clean-css/lib/index.js +0 -23
- package/my_template/node_modules/less-plugin-clean-css/lib/parse-options.js +0 -61
- package/my_template/node_modules/less-plugin-clean-css/lib/usage.js +0 -19
- package/my_template/node_modules/less-plugin-clean-css/package.json +0 -39
- package/my_template/node_modules/make-dir/index.d.ts +0 -39
- package/my_template/node_modules/make-dir/index.js +0 -139
- package/my_template/node_modules/make-dir/license +0 -9
- package/my_template/node_modules/make-dir/package.json +0 -59
- package/my_template/node_modules/make-dir/readme.md +0 -123
- package/my_template/node_modules/merge-stream/LICENSE +0 -21
- package/my_template/node_modules/merge-stream/README.md +0 -78
- package/my_template/node_modules/merge-stream/index.js +0 -41
- package/my_template/node_modules/merge-stream/package.json +0 -19
- package/my_template/node_modules/mime/CHANGELOG.md +0 -164
- package/my_template/node_modules/mime/LICENSE +0 -21
- package/my_template/node_modules/mime/README.md +0 -90
- package/my_template/node_modules/mime/cli.js +0 -8
- package/my_template/node_modules/mime/mime.js +0 -108
- package/my_template/node_modules/mime/package.json +0 -44
- package/my_template/node_modules/mime/src/build.js +0 -53
- package/my_template/node_modules/mime/src/test.js +0 -60
- package/my_template/node_modules/mime/types.json +0 -1
- package/my_template/node_modules/native-request/README.md +0 -184
- package/my_template/node_modules/native-request/commons/jsonToParameter.js +0 -14
- package/my_template/node_modules/native-request/index.js +0 -65
- package/my_template/node_modules/native-request/lib/Request.js +0 -144
- package/my_template/node_modules/native-request/package.json +0 -45
- package/my_template/node_modules/native-request/test/express.get.cookies.js +0 -58
- package/my_template/node_modules/native-request/test/express.get.js +0 -146
- package/my_template/node_modules/native-request/test/express.post.cookies.js +0 -59
- package/my_template/node_modules/native-request/test/express.post.js +0 -148
- package/my_template/node_modules/native-request/test/get.cookies.js +0 -72
- package/my_template/node_modules/native-request/test/get.js +0 -140
- package/my_template/node_modules/native-request/test/post.cookies.js +0 -72
- package/my_template/node_modules/native-request/test/post.js +0 -155
- package/my_template/node_modules/path-parse/LICENSE +0 -21
- package/my_template/node_modules/path-parse/README.md +0 -42
- package/my_template/node_modules/path-parse/index.js +0 -75
- package/my_template/node_modules/path-parse/package.json +0 -33
- package/my_template/node_modules/pify/index.js +0 -68
- package/my_template/node_modules/pify/license +0 -9
- package/my_template/node_modules/pify/package.json +0 -51
- package/my_template/node_modules/pify/readme.md +0 -145
- package/my_template/node_modules/prr/.jshintrc +0 -61
- package/my_template/node_modules/prr/.travis.yml +0 -10
- package/my_template/node_modules/prr/LICENSE.md +0 -11
- package/my_template/node_modules/prr/README.md +0 -47
- package/my_template/node_modules/prr/package.json +0 -26
- package/my_template/node_modules/prr/prr.js +0 -63
- package/my_template/node_modules/prr/test.js +0 -169
- package/my_template/node_modules/resolve/.editorconfig +0 -37
- package/my_template/node_modules/resolve/.eslintrc +0 -65
- package/my_template/node_modules/resolve/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/resolve/LICENSE +0 -21
- package/my_template/node_modules/resolve/SECURITY.md +0 -3
- package/my_template/node_modules/resolve/async.js +0 -3
- package/my_template/node_modules/resolve/bin/resolve +0 -50
- package/my_template/node_modules/resolve/example/async.js +0 -5
- package/my_template/node_modules/resolve/example/sync.js +0 -3
- package/my_template/node_modules/resolve/index.js +0 -6
- package/my_template/node_modules/resolve/lib/async.js +0 -329
- package/my_template/node_modules/resolve/lib/caller.js +0 -8
- package/my_template/node_modules/resolve/lib/core.js +0 -12
- package/my_template/node_modules/resolve/lib/core.json +0 -158
- package/my_template/node_modules/resolve/lib/homedir.js +0 -24
- package/my_template/node_modules/resolve/lib/is-core.js +0 -5
- package/my_template/node_modules/resolve/lib/node-modules-paths.js +0 -42
- package/my_template/node_modules/resolve/lib/normalize-options.js +0 -10
- package/my_template/node_modules/resolve/lib/sync.js +0 -208
- package/my_template/node_modules/resolve/package.json +0 -72
- package/my_template/node_modules/resolve/readme.markdown +0 -301
- package/my_template/node_modules/resolve/sync.js +0 -3
- package/my_template/node_modules/resolve/test/core.js +0 -88
- package/my_template/node_modules/resolve/test/dotdot/abc/index.js +0 -2
- package/my_template/node_modules/resolve/test/dotdot/index.js +0 -1
- package/my_template/node_modules/resolve/test/dotdot.js +0 -29
- package/my_template/node_modules/resolve/test/faulty_basedir.js +0 -29
- package/my_template/node_modules/resolve/test/filter.js +0 -34
- package/my_template/node_modules/resolve/test/filter_sync.js +0 -33
- package/my_template/node_modules/resolve/test/home_paths.js +0 -127
- package/my_template/node_modules/resolve/test/home_paths_sync.js +0 -114
- package/my_template/node_modules/resolve/test/mock.js +0 -315
- package/my_template/node_modules/resolve/test/mock_sync.js +0 -214
- package/my_template/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
- package/my_template/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
- package/my_template/node_modules/resolve/test/module_dir.js +0 -56
- package/my_template/node_modules/resolve/test/node-modules-paths.js +0 -143
- package/my_template/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
- package/my_template/node_modules/resolve/test/node_path.js +0 -70
- package/my_template/node_modules/resolve/test/nonstring.js +0 -9
- package/my_template/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/my_template/node_modules/resolve/test/pathfilter.js +0 -75
- package/my_template/node_modules/resolve/test/precedence/aaa/index.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/aaa/main.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/aaa.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/bbb/main.js +0 -1
- package/my_template/node_modules/resolve/test/precedence/bbb.js +0 -1
- package/my_template/node_modules/resolve/test/precedence.js +0 -23
- package/my_template/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/baz/package.json +0 -4
- package/my_template/node_modules/resolve/test/resolver/baz/quux.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
- package/my_template/node_modules/resolve/test/resolver/cup.coffee +0 -1
- package/my_template/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/false_main/package.json +0 -4
- package/my_template/node_modules/resolve/test/resolver/foo.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
- package/my_template/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
- package/my_template/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/my_template/node_modules/resolve/test/resolver/mug.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
- package/my_template/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
- package/my_template/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
- package/my_template/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/my_template/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/my_template/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
- package/my_template/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
- package/my_template/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
- package/my_template/node_modules/resolve/test/resolver.js +0 -597
- package/my_template/node_modules/resolve/test/resolver_sync.js +0 -730
- package/my_template/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/my_template/node_modules/resolve/test/shadowed_core.js +0 -54
- package/my_template/node_modules/resolve/test/subdirs.js +0 -13
- package/my_template/node_modules/resolve/test/symlinks.js +0 -176
- package/my_template/node_modules/rollup/CHANGELOG.md +0 -3084
- package/my_template/node_modules/rollup/LICENSE.md +0 -578
- package/my_template/node_modules/rollup/README.md +0 -138
- package/my_template/node_modules/rollup/dist/bin/rollup +0 -1457
- package/my_template/node_modules/rollup/dist/rollup.browser.es.js +0 -25
- package/my_template/node_modules/rollup/dist/rollup.browser.js +0 -26
- package/my_template/node_modules/rollup/dist/rollup.d.ts +0 -656
- package/my_template/node_modules/rollup/dist/rollup.es.js +0 -17493
- package/my_template/node_modules/rollup/dist/rollup.js +0 -29
- package/my_template/node_modules/rollup/dist/shared/index.js +0 -321
- package/my_template/node_modules/rollup/dist/shared/node-entry.js +0 -17504
- package/my_template/node_modules/rollup/package.json +0 -139
- package/my_template/node_modules/rollup-plugin-node-resolve/CHANGELOG.md +0 -195
- package/my_template/node_modules/rollup-plugin-node-resolve/README.md +0 -135
- package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js +0 -425
- package/my_template/node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es.js +0 -421
- package/my_template/node_modules/rollup-plugin-node-resolve/index.d.ts +0 -100
- package/my_template/node_modules/rollup-plugin-node-resolve/package.json +0 -60
- package/my_template/node_modules/rollup-plugin-node-resolve/src/index.js +0 -358
- package/my_template/node_modules/rollup-plugin-uglify/LICENSE +0 -20
- package/my_template/node_modules/rollup-plugin-uglify/README.md +0 -84
- package/my_template/node_modules/rollup-plugin-uglify/index.js +0 -51
- package/my_template/node_modules/rollup-plugin-uglify/package.json +0 -43
- package/my_template/node_modules/rollup-plugin-uglify/transform.js +0 -13
- package/my_template/node_modules/rollup-pluginutils/CHANGELOG.md +0 -125
- package/my_template/node_modules/rollup-pluginutils/README.md +0 -169
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.cjs.js +0 -3292
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.d.ts +0 -39
- package/my_template/node_modules/rollup-pluginutils/dist/pluginutils.es.js +0 -3280
- package/my_template/node_modules/rollup-pluginutils/package.json +0 -57
- package/my_template/node_modules/rollup-pluginutils/src/addExtension.ts +0 -9
- package/my_template/node_modules/rollup-pluginutils/src/attachScopes.ts +0 -125
- package/my_template/node_modules/rollup-pluginutils/src/createFilter.ts +0 -52
- package/my_template/node_modules/rollup-pluginutils/src/dataToEsm.ts +0 -92
- package/my_template/node_modules/rollup-pluginutils/src/extractAssignedNames.ts +0 -46
- package/my_template/node_modules/rollup-pluginutils/src/index.ts +0 -6
- package/my_template/node_modules/rollup-pluginutils/src/makeLegalIdentifier.ts +0 -21
- package/my_template/node_modules/rollup-pluginutils/src/pluginutils.d.ts +0 -39
- package/my_template/node_modules/rollup-pluginutils/src/utils/ensureArray.ts +0 -5
- package/my_template/node_modules/semver/LICENSE +0 -15
- package/my_template/node_modules/semver/README.md +0 -412
- package/my_template/node_modules/semver/bin/semver +0 -160
- package/my_template/node_modules/semver/package.json +0 -38
- package/my_template/node_modules/semver/range.bnf +0 -16
- package/my_template/node_modules/semver/semver.js +0 -1525
- package/my_template/node_modules/serialize-javascript/LICENSE +0 -27
- package/my_template/node_modules/serialize-javascript/README.md +0 -143
- package/my_template/node_modules/serialize-javascript/index.js +0 -210
- package/my_template/node_modules/serialize-javascript/package.json +0 -33
- package/my_template/node_modules/source-map/CHANGELOG.md +0 -301
- package/my_template/node_modules/source-map/LICENSE +0 -28
- package/my_template/node_modules/source-map/README.md +0 -742
- package/my_template/node_modules/source-map/dist/source-map.debug.js +0 -3234
- package/my_template/node_modules/source-map/dist/source-map.js +0 -3233
- package/my_template/node_modules/source-map/dist/source-map.min.js +0 -2
- package/my_template/node_modules/source-map/dist/source-map.min.js.map +0 -1
- package/my_template/node_modules/source-map/lib/array-set.js +0 -121
- package/my_template/node_modules/source-map/lib/base64-vlq.js +0 -140
- package/my_template/node_modules/source-map/lib/base64.js +0 -67
- package/my_template/node_modules/source-map/lib/binary-search.js +0 -111
- package/my_template/node_modules/source-map/lib/mapping-list.js +0 -79
- package/my_template/node_modules/source-map/lib/quick-sort.js +0 -114
- package/my_template/node_modules/source-map/lib/source-map-consumer.js +0 -1145
- package/my_template/node_modules/source-map/lib/source-map-generator.js +0 -425
- package/my_template/node_modules/source-map/lib/source-node.js +0 -413
- package/my_template/node_modules/source-map/lib/util.js +0 -488
- package/my_template/node_modules/source-map/package.json +0 -73
- package/my_template/node_modules/source-map/source-map.d.ts +0 -98
- package/my_template/node_modules/source-map/source-map.js +0 -8
- package/my_template/node_modules/supports-color/browser.js +0 -5
- package/my_template/node_modules/supports-color/index.js +0 -131
- package/my_template/node_modules/supports-color/license +0 -9
- package/my_template/node_modules/supports-color/package.json +0 -53
- package/my_template/node_modules/supports-color/readme.md +0 -66
- package/my_template/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
- package/my_template/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
- package/my_template/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
- package/my_template/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
- package/my_template/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
- package/my_template/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
- package/my_template/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
- package/my_template/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
- package/my_template/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
- package/my_template/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
- package/my_template/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/my_template/node_modules/tslib/LICENSE.txt +0 -12
- package/my_template/node_modules/tslib/README.md +0 -142
- package/my_template/node_modules/tslib/modules/index.js +0 -51
- package/my_template/node_modules/tslib/modules/package.json +0 -3
- package/my_template/node_modules/tslib/package.json +0 -37
- package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +0 -23
- package/my_template/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +0 -6
- package/my_template/node_modules/tslib/tslib.d.ts +0 -37
- package/my_template/node_modules/tslib/tslib.es6.html +0 -1
- package/my_template/node_modules/tslib/tslib.es6.js +0 -218
- package/my_template/node_modules/tslib/tslib.html +0 -1
- package/my_template/node_modules/tslib/tslib.js +0 -284
- package/my_template/node_modules/uglify-js/LICENSE +0 -29
- package/my_template/node_modules/uglify-js/README.md +0 -1478
- package/my_template/node_modules/uglify-js/bin/uglifyjs +0 -605
- package/my_template/node_modules/uglify-js/lib/ast.js +0 -2356
- package/my_template/node_modules/uglify-js/lib/compress.js +0 -14241
- package/my_template/node_modules/uglify-js/lib/minify.js +0 -276
- package/my_template/node_modules/uglify-js/lib/mozilla-ast.js +0 -1310
- package/my_template/node_modules/uglify-js/lib/output.js +0 -1956
- package/my_template/node_modules/uglify-js/lib/parse.js +0 -2585
- package/my_template/node_modules/uglify-js/lib/propmangle.js +0 -328
- package/my_template/node_modules/uglify-js/lib/scope.js +0 -866
- package/my_template/node_modules/uglify-js/lib/sourcemap.js +0 -195
- package/my_template/node_modules/uglify-js/lib/transform.js +0 -250
- package/my_template/node_modules/uglify-js/lib/utils.js +0 -287
- package/my_template/node_modules/uglify-js/package.json +0 -56
- package/my_template/node_modules/uglify-js/tools/domprops.html +0 -456
- package/my_template/node_modules/uglify-js/tools/domprops.json +0 -8325
- package/my_template/node_modules/uglify-js/tools/exports.js +0 -8
- package/my_template/node_modules/uglify-js/tools/node.js +0 -110
- package/my_template/node_modules/uglify-js/tools/tty.js +0 -22
- package/my_template/node_modules/undici-types/README.md +0 -6
- package/my_template/node_modules/undici-types/agent.d.ts +0 -31
- package/my_template/node_modules/undici-types/api.d.ts +0 -43
- package/my_template/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/my_template/node_modules/undici-types/cache.d.ts +0 -36
- package/my_template/node_modules/undici-types/client.d.ts +0 -97
- package/my_template/node_modules/undici-types/connector.d.ts +0 -34
- package/my_template/node_modules/undici-types/content-type.d.ts +0 -21
- package/my_template/node_modules/undici-types/cookies.d.ts +0 -28
- package/my_template/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/my_template/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/my_template/node_modules/undici-types/errors.d.ts +0 -128
- package/my_template/node_modules/undici-types/fetch.d.ts +0 -209
- package/my_template/node_modules/undici-types/file.d.ts +0 -39
- package/my_template/node_modules/undici-types/filereader.d.ts +0 -54
- package/my_template/node_modules/undici-types/formdata.d.ts +0 -108
- package/my_template/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/my_template/node_modules/undici-types/global-origin.d.ts +0 -7
- package/my_template/node_modules/undici-types/handlers.d.ts +0 -9
- package/my_template/node_modules/undici-types/header.d.ts +0 -4
- package/my_template/node_modules/undici-types/index.d.ts +0 -63
- package/my_template/node_modules/undici-types/interceptors.d.ts +0 -5
- package/my_template/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/my_template/node_modules/undici-types/mock-client.d.ts +0 -25
- package/my_template/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/my_template/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/my_template/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/my_template/node_modules/undici-types/package.json +0 -55
- package/my_template/node_modules/undici-types/patch.d.ts +0 -71
- package/my_template/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/my_template/node_modules/undici-types/pool.d.ts +0 -28
- package/my_template/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/my_template/node_modules/undici-types/readable.d.ts +0 -61
- package/my_template/node_modules/undici-types/webidl.d.ts +0 -220
- package/my_template/node_modules/undici-types/websocket.d.ts +0 -131
- package/server/columns.js +0 -201
- package/server/data.js +0 -327
- package/server/json.js +0 -66
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
var node_1 = __importDefault(require("./node"));
|
|
26
|
-
var value_1 = __importDefault(require("./value"));
|
|
27
|
-
var keyword_1 = __importDefault(require("./keyword"));
|
|
28
|
-
var anonymous_1 = __importDefault(require("./anonymous"));
|
|
29
|
-
var Constants = __importStar(require("../constants"));
|
|
30
|
-
var MATH = Constants.Math;
|
|
31
|
-
var Declaration = function (name, value, important, merge, index, currentFileInfo, inline, variable) {
|
|
32
|
-
this.name = name;
|
|
33
|
-
this.value = (value instanceof node_1.default) ? value : new value_1.default([value ? new anonymous_1.default(value) : null]);
|
|
34
|
-
this.important = important ? " " + important.trim() : '';
|
|
35
|
-
this.merge = merge;
|
|
36
|
-
this._index = index;
|
|
37
|
-
this._fileInfo = currentFileInfo;
|
|
38
|
-
this.inline = inline || false;
|
|
39
|
-
this.variable = (variable !== undefined) ? variable
|
|
40
|
-
: (name.charAt && (name.charAt(0) === '@'));
|
|
41
|
-
this.allowRoot = true;
|
|
42
|
-
this.setParent(this.value, this);
|
|
43
|
-
};
|
|
44
|
-
Declaration.prototype = new node_1.default();
|
|
45
|
-
Declaration.prototype.genCSS = function (context, output) {
|
|
46
|
-
output.add(this.name + (context.compress ? ':' : ': '), this.fileInfo(), this.getIndex());
|
|
47
|
-
try {
|
|
48
|
-
this.value.genCSS(context, output);
|
|
49
|
-
}
|
|
50
|
-
catch (e) {
|
|
51
|
-
e.index = this._index;
|
|
52
|
-
e.filename = this._fileInfo.filename;
|
|
53
|
-
throw e;
|
|
54
|
-
}
|
|
55
|
-
output.add(this.important + ((this.inline || (context.lastRule && context.compress)) ? '' : ';'), this._fileInfo, this._index);
|
|
56
|
-
};
|
|
57
|
-
Declaration.prototype.eval = function (context) {
|
|
58
|
-
var mathBypass = false;
|
|
59
|
-
var prevMath;
|
|
60
|
-
var name = this.name;
|
|
61
|
-
var evaldValue;
|
|
62
|
-
var variable = this.variable;
|
|
63
|
-
if (typeof name !== 'string') {
|
|
64
|
-
// expand 'primitive' name directly to get
|
|
65
|
-
// things faster (~10% for benchmark.less):
|
|
66
|
-
name = (name.length === 1) && (name[0] instanceof keyword_1.default) ?
|
|
67
|
-
name[0].value : evalName(context, name);
|
|
68
|
-
variable = false; // never treat expanded interpolation as new variable name
|
|
69
|
-
}
|
|
70
|
-
// @todo remove when parens-division is default
|
|
71
|
-
if (name === 'font' && context.math === MATH.ALWAYS) {
|
|
72
|
-
mathBypass = true;
|
|
73
|
-
prevMath = context.math;
|
|
74
|
-
context.math = MATH.PARENS_DIVISION;
|
|
75
|
-
}
|
|
76
|
-
try {
|
|
77
|
-
context.importantScope.push({});
|
|
78
|
-
evaldValue = this.value.eval(context);
|
|
79
|
-
if (!this.variable && evaldValue.type === 'DetachedRuleset') {
|
|
80
|
-
throw { message: 'Rulesets cannot be evaluated on a property.',
|
|
81
|
-
index: this.getIndex(), filename: this.fileInfo().filename };
|
|
82
|
-
}
|
|
83
|
-
var important = this.important;
|
|
84
|
-
var importantResult = context.importantScope.pop();
|
|
85
|
-
if (!important && importantResult.important) {
|
|
86
|
-
important = importantResult.important;
|
|
87
|
-
}
|
|
88
|
-
return new Declaration(name, evaldValue, important, this.merge, this.getIndex(), this.fileInfo(), this.inline, variable);
|
|
89
|
-
}
|
|
90
|
-
catch (e) {
|
|
91
|
-
if (typeof e.index !== 'number') {
|
|
92
|
-
e.index = this.getIndex();
|
|
93
|
-
e.filename = this.fileInfo().filename;
|
|
94
|
-
}
|
|
95
|
-
throw e;
|
|
96
|
-
}
|
|
97
|
-
finally {
|
|
98
|
-
if (mathBypass) {
|
|
99
|
-
context.math = prevMath;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
Declaration.prototype.makeImportant = function () {
|
|
104
|
-
return new Declaration(this.name, this.value, '!important', this.merge, this.getIndex(), this.fileInfo(), this.inline);
|
|
105
|
-
};
|
|
106
|
-
function evalName(context, name) {
|
|
107
|
-
var value = '';
|
|
108
|
-
var i;
|
|
109
|
-
var n = name.length;
|
|
110
|
-
var output = { add: function (s) { value += s; } };
|
|
111
|
-
for (i = 0; i < n; i++) {
|
|
112
|
-
name[i].eval(context).genCSS(context, output);
|
|
113
|
-
}
|
|
114
|
-
return value;
|
|
115
|
-
}
|
|
116
|
-
Declaration.prototype.type = 'Declaration';
|
|
117
|
-
exports.default = Declaration;
|
|
118
|
-
//# sourceMappingURL=declaration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.js","sourceRoot":"","sources":["../../../src/less/tree/declaration.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,kDAA4B;AAC5B,sDAAgC;AAChC,0DAAoC;AACpC,sDAA0C;AAC1C,IAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;AAG5B,IAAM,WAAW,GAAG,UAAS,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ;IAChG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACjB,IAAI,CAAC,KAAK,GAAG,CAAC,KAAK,YAAY,cAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,eAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,mBAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAChG,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC,CAAC,MAAI,SAAS,CAAC,IAAI,EAAI,CAAC,CAAC,CAAC,EAAE,CAAC;IACzD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACnB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACpB,IAAI,CAAC,SAAS,GAAG,e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AAM,GAAG,EAAC,GAAG,EAAE,UAAU,CAAC,IAAG,KAAK,IAAI,CAAC,CAAC,CAAA,CAAC,EAAC,CAAC;IACjD,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACpB,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;KACjD;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,WAAW,CAAC,SAAS,CAAC,IAAI,GAAG,aAAa,CAAC;AAC3C,kBAAe,WAAW,CAAC","sourcesContent":["import Node from './node';\nimport Value from './value';\nimport Keyword from './keyword';\nimport Anonymous from './anonymous';\nimport * as Constants from '../constants';\nconst MATH = Constants.Math;\n\n\nconst Declaration = function(name, value, important, merge, index, currentFileInfo, inline, variable) {\n this.name = name;\n this.value = (value instanceof Node) ? value : new Value([value ? new Anonymous(value) : null]);\n this.important = important ? ` ${important.trim()}` : '';\n this.merge = merge;\n this._index = index;\n this._fileInfo = currentFileInfo;\n this.inline = inline || false;\n this.variable = (variable !== undefined) ? variable\n : (name.charAt && (name.charAt(0) === '@'));\n this.allowRoot = true;\n this.setParent(this.value, this);\n};\n\nDeclaration.prototype = new Node();\n\nDeclaration.prototype.genCSS = function(context, output) {\n output.add(this.name + (context.compress ? ':' : ': '), this.fileInfo(), this.getIndex());\n try {\n this.value.genCSS(context, output);\n }\n catch (e) {\n e.index = this._index;\n e.filename = this._fileInfo.filename;\n throw e;\n }\n output.add(this.important + ((this.inline || (context.lastRule && context.compress)) ? '' : ';'), this._fileInfo, this._index);\n}\n\nDeclaration.prototype.eval = function(context) {\n let mathBypass = false;\n let prevMath;\n let name = this.name;\n let evaldValue;\n let variable = this.variable;\n if (typeof name !== 'string') {\n // expand 'primitive' name directly to get\n // things faster (~10% for benchmark.less):\n name = (name.length === 1) && (name[0] instanceof Keyword) ?\n name[0].value : evalName(context, name);\n variable = false; // never treat expanded interpolation as new variable name\n }\n\n // @todo remove when parens-division is default\n if (name === 'font' && context.math === MATH.ALWAYS) {\n mathBypass = true;\n prevMath = context.math;\n context.math = MATH.PARENS_DIVISION;\n }\n try {\n context.importantScope.push({});\n evaldValue = this.value.eval(context);\n\n if (!this.variable && evaldValue.type === 'DetachedRuleset') {\n throw { message: 'Rulesets cannot be evaluated on a property.',\n index: this.getIndex(), filename: this.fileInfo().filename };\n }\n let important = this.important;\n const importantResult = context.importantScope.pop();\n if (!important && importantResult.important) {\n important = importantResult.important;\n }\n\n return new Declaration(name,\n evaldValue,\n important,\n this.merge,\n this.getIndex(), this.fileInfo(), this.inline,\n variable);\n }\n catch (e) {\n if (typeof e.index !== 'number') {\n e.index = this.getIndex();\n e.filename = this.fileInfo().filename;\n }\n throw e;\n }\n finally {\n if (mathBypass) {\n context.math = prevMath;\n }\n }\n};\n\nDeclaration.prototype.makeImportant = function() {\n return new Declaration(this.name,\n this.value,\n '!important',\n this.merge,\n this.getIndex(), this.fileInfo(), this.inline);\n};\n\nfunction evalName(context, name) {\n let value = '';\n let i;\n const n = name.length;\n const output = {add: function (s) {value += s;}};\n for (i = 0; i < n; i++) {\n name[i].eval(context).genCSS(context, output);\n }\n return value;\n}\n\nDeclaration.prototype.type = 'Declaration';\nexport default Declaration;"]}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
var node_1 = __importDefault(require("./node"));
|
|
26
|
-
var contexts_1 = __importDefault(require("../contexts"));
|
|
27
|
-
var utils = __importStar(require("../utils"));
|
|
28
|
-
var DetachedRuleset = function (ruleset, frames) {
|
|
29
|
-
this.ruleset = ruleset;
|
|
30
|
-
this.frames = frames;
|
|
31
|
-
this.setParent(this.ruleset, this);
|
|
32
|
-
};
|
|
33
|
-
DetachedRuleset.prototype = new node_1.default();
|
|
34
|
-
DetachedRuleset.prototype.accept = function (visitor) {
|
|
35
|
-
this.ruleset = visitor.visit(this.ruleset);
|
|
36
|
-
};
|
|
37
|
-
DetachedRuleset.prototype.eval = function (context) {
|
|
38
|
-
var frames = this.frames || utils.copyArray(context.frames);
|
|
39
|
-
return new DetachedRuleset(this.ruleset, frames);
|
|
40
|
-
};
|
|
41
|
-
DetachedRuleset.prototype.callEval = function (context) {
|
|
42
|
-
return this.ruleset.eval(this.frames ? new contexts_1.default.Eval(context, this.frames.concat(context.frames)) : context);
|
|
43
|
-
};
|
|
44
|
-
DetachedRuleset.prototype.type = 'DetachedRuleset';
|
|
45
|
-
DetachedRuleset.prototype.evalFirst = true;
|
|
46
|
-
exports.default = DetachedRuleset;
|
|
47
|
-
//# sourceMappingURL=detached-ruleset.js.map
|
|
@@ -1 +0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CAAC,SAAS,CAAC,SAAS,GAAG,IAAI,CAAC;AAC3C,kBAAe,eAAe,CAAC","sourcesContent":["import Node from './node';\nimport contexts from '../contexts';\nimport * as utils from '../utils';\n\nconst DetachedRuleset = function(ruleset, frames) {\n this.ruleset = ruleset;\n this.frames = frames;\n this.setParent(this.ruleset, this);\n};\n\nDetachedRuleset.prototype = new Node();\n\nDetachedRuleset.prototype.accept = function(visitor) {\n this.ruleset = visitor.visit(this.ruleset);\n};\n\nDetachedRuleset.prototype.eval = function(context) {\n const frames = this.frames || utils.copyArray(context.frames);\n return new DetachedRuleset(this.ruleset, frames);\n};\n\nDetachedRuleset.prototype.callEval = function(context) {\n return this.ruleset.eval(this.frames ? new contexts.Eval(context, this.frames.concat(context.frames)) : context);\n};\n\nDetachedRuleset.prototype.type = 'DetachedRuleset';\nDetachedRuleset.prototype.evalFirst = true;\nexport default DetachedRuleset;\n"]}
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var node_1 = __importDefault(require("./node"));
|
|
7
|
-
var unit_conversions_1 = __importDefault(require("../data/unit-conversions"));
|
|
8
|
-
var unit_1 = __importDefault(require("./unit"));
|
|
9
|
-
var color_1 = __importDefault(require("./color"));
|
|
10
|
-
//
|
|
11
|
-
// A number with a unit
|
|
12
|
-
//
|
|
13
|
-
var Dimension = function (value, unit) {
|
|
14
|
-
this.value = parseFloat(value);
|
|
15
|
-
if (isNaN(this.value)) {
|
|
16
|
-
throw new Error('Dimension is not a number.');
|
|
17
|
-
}
|
|
18
|
-
this.unit = (unit && unit instanceof unit_1.default) ? unit :
|
|
19
|
-
new unit_1.default(unit ? [unit] : undefined);
|
|
20
|
-
this.setParent(this.unit, this);
|
|
21
|
-
};
|
|
22
|
-
Dimension.prototype = new node_1.default();
|
|
23
|
-
Dimension.prototype.accept = function (visitor) {
|
|
24
|
-
this.unit = visitor.visit(this.unit);
|
|
25
|
-
};
|
|
26
|
-
Dimension.prototype.eval = function (context) {
|
|
27
|
-
return this;
|
|
28
|
-
};
|
|
29
|
-
Dimension.prototype.toColor = function () {
|
|
30
|
-
return new color_1.default([this.value, this.value, this.value]);
|
|
31
|
-
};
|
|
32
|
-
Dimension.prototype.genCSS = function (context, output) {
|
|
33
|
-
if ((context && context.strictUnits) && !this.unit.isSingular()) {
|
|
34
|
-
throw new Error("Multiple units in dimension. Correct the units or use the unit function. Bad unit: " + this.unit.toString());
|
|
35
|
-
}
|
|
36
|
-
var value = this.fround(context, this.value);
|
|
37
|
-
var strValue = String(value);
|
|
38
|
-
if (value !== 0 && value < 0.000001 && value > -0.000001) {
|
|
39
|
-
// would be output 1e-6 etc.
|
|
40
|
-
strValue = value.toFixed(20).replace(/0+$/, '');
|
|
41
|
-
}
|
|
42
|
-
if (context && context.compress) {
|
|
43
|
-
// Zero values doesn't need a unit
|
|
44
|
-
if (value === 0 && this.unit.isLength()) {
|
|
45
|
-
output.add(strValue);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
// Float values doesn't need a leading zero
|
|
49
|
-
if (value > 0 && value < 1) {
|
|
50
|
-
strValue = (strValue).substr(1);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
output.add(strValue);
|
|
54
|
-
this.unit.genCSS(context, output);
|
|
55
|
-
};
|
|
56
|
-
// In an operation between two Dimensions,
|
|
57
|
-
// we default to the first Dimension's unit,
|
|
58
|
-
// so `1px + 2` will yield `3px`.
|
|
59
|
-
Dimension.prototype.operate = function (context, op, other) {
|
|
60
|
-
/* jshint noempty:false */
|
|
61
|
-
var value = this._operate(context, op, this.value, other.value);
|
|
62
|
-
var unit = this.unit.clone();
|
|
63
|
-
if (op === '+' || op === '-') {
|
|
64
|
-
if (unit.numerator.length === 0 && unit.denominator.length === 0) {
|
|
65
|
-
unit = other.unit.clone();
|
|
66
|
-
if (this.unit.backupUnit) {
|
|
67
|
-
unit.backupUnit = this.unit.backupUnit;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
else if (other.unit.numerator.length === 0 && unit.denominator.length === 0) {
|
|
71
|
-
// do nothing
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
other = other.convertTo(this.unit.usedUnits());
|
|
75
|
-
if (context.strictUnits && other.unit.toString() !== unit.toString()) {
|
|
76
|
-
throw new Error("Incompatible units. Change the units or use the unit function. " +
|
|
77
|
-
("Bad units: '" + unit.toString() + "' and '" + other.unit.toString() + "'."));
|
|
78
|
-
}
|
|
79
|
-
value = this._operate(context, op, this.value, other.value);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
else if (op === '*') {
|
|
83
|
-
unit.numerator = unit.numerator.concat(other.unit.numerator).sort();
|
|
84
|
-
unit.denominator = unit.denominator.concat(other.unit.denominator).sort();
|
|
85
|
-
unit.cancel();
|
|
86
|
-
}
|
|
87
|
-
else if (op === '/') {
|
|
88
|
-
unit.numerator = unit.numerator.concat(other.unit.denominator).sort();
|
|
89
|
-
unit.denominator = unit.denominator.concat(other.unit.numerator).sort();
|
|
90
|
-
unit.cancel();
|
|
91
|
-
}
|
|
92
|
-
return new Dimension(value, unit);
|
|
93
|
-
};
|
|
94
|
-
Dimension.prototype.compare = function (other) {
|
|
95
|
-
var a;
|
|
96
|
-
var b;
|
|
97
|
-
if (!(other instanceof Dimension)) {
|
|
98
|
-
return undefined;
|
|
99
|
-
}
|
|
100
|
-
if (this.unit.isEmpty() || other.unit.isEmpty()) {
|
|
101
|
-
a = this;
|
|
102
|
-
b = other;
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
a = this.unify();
|
|
106
|
-
b = other.unify();
|
|
107
|
-
if (a.unit.compare(b.unit) !== 0) {
|
|
108
|
-
return undefined;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
return node_1.default.numericCompare(a.value, b.value);
|
|
112
|
-
};
|
|
113
|
-
Dimension.prototype.unify = function () {
|
|
114
|
-
return this.convertTo({ length: 'px', duration: 's', angle: 'rad' });
|
|
115
|
-
};
|
|
116
|
-
Dimension.prototype.convertTo = function (conversions) {
|
|
117
|
-
var value = this.value;
|
|
118
|
-
var unit = this.unit.clone();
|
|
119
|
-
var i;
|
|
120
|
-
var groupName;
|
|
121
|
-
var group;
|
|
122
|
-
var targetUnit;
|
|
123
|
-
var derivedConversions = {};
|
|
124
|
-
var applyUnit;
|
|
125
|
-
if (typeof conversions === 'string') {
|
|
126
|
-
for (i in unit_conversions_1.default) {
|
|
127
|
-
if (unit_conversions_1.default[i].hasOwnProperty(conversions)) {
|
|
128
|
-
derivedConversions = {};
|
|
129
|
-
derivedConversions[i] = conversions;
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
conversions = derivedConversions;
|
|
133
|
-
}
|
|
134
|
-
applyUnit = function (atomicUnit, denominator) {
|
|
135
|
-
/* jshint loopfunc:true */
|
|
136
|
-
if (group.hasOwnProperty(atomicUnit)) {
|
|
137
|
-
if (denominator) {
|
|
138
|
-
value = value / (group[atomicUnit] / group[targetUnit]);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
value = value * (group[atomicUnit] / group[targetUnit]);
|
|
142
|
-
}
|
|
143
|
-
return targetUnit;
|
|
144
|
-
}
|
|
145
|
-
return atomicUnit;
|
|
146
|
-
};
|
|
147
|
-
for (groupName in conversions) {
|
|
148
|
-
if (conversions.hasOwnProperty(groupName)) {
|
|
149
|
-
targetUnit = conversions[groupName];
|
|
150
|
-
group = unit_conversions_1.default[groupName];
|
|
151
|
-
unit.map(applyUnit);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
unit.cancel();
|
|
155
|
-
return new Dimension(value, unit);
|
|
156
|
-
};
|
|
157
|
-
Dimension.prototype.type = 'Dimension';
|
|
158
|
-
exports.default = Dimension;
|
|
159
|
-
//# s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,CAAC,CAAC;aAC3D;iBAAM;gBACH,KAAK,GAAG,KAAK,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;aAC3D;YAED,OAAO,UAAU,CAAC;SACrB;QAED,OAAO,UAAU,CAAC;IACtB,CAAC,CAAC;IAEF,KAAK,SAAS,IAAI,WAAW,EAAE;QAC3B,IAAI,WAAW,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE;YACvC,UAAU,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;YACpC,KAAK,GAAG,0BAAe,CAAC,SAAS,CAAC,CAAC;YAEnC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;SACvB;KACJ;IAED,IAAI,CAAC,MAAM,EAAE,CAAC;IAEd,OAAO,IAAI,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACtC,CAAC,CAAC;AAEF,SAAS,CAAC,SAAS,CAAC,IAAI,GAAG,WAAW,CAAC;AACvC,kBAAe,SAAS,CAAC","sourcesContent":["import Node from './node';\nimport unitConversions from '../data/unit-conversions';\nimport Unit from './unit';\nimport Color from './color';\n\n//\n// A number with a unit\n//\nconst Dimension = function(value, unit) {\n this.value = parseFloat(value);\n if (isNaN(this.value)) {\n throw new Error('Dimension is not a number.');\n }\n this.unit = (unit && unit instanceof Unit) ? unit :\n new Unit(unit ? [unit] : undefined);\n this.setParent(this.unit, this);\n};\n\nDimension.prototype = new Node();\n\nDimension.prototype.accept = function(visitor) {\n this.unit = visitor.visit(this.unit);\n};\n\nDimension.prototype.eval = function(context) {\n return this;\n};\n\nDimension.prototype.toColor = function() {\n return new Color([this.value, this.value, this.value]);\n};\n\nDimension.prototype.genCSS = function(context, output) {\n if ((context && context.strictUnits) && !this.unit.isSingular()) {\n throw new Error(`Multiple units in dimension. Correct the units or use the unit function. Bad unit: ${this.unit.toString()}`);\n }\n\n const value = this.fround(context, this.value);\n let strValue = String(value);\n\n if (value !== 0 && value < 0.000001 && value > -0.000001) {\n // would be output 1e-6 etc.\n strValue = value.toFixed(20).replace(/0+$/, '');\n }\n\n if (context && context.compress) {\n // Zero values doesn't need a unit\n if (value === 0 && this.unit.isLength()) {\n output.add(strValue);\n return;\n }\n\n // Float values doesn't need a leading zero\n if (value > 0 && value < 1) {\n strValue = (strValue).substr(1);\n }\n }\n\n output.add(strValue);\n this.unit.genCSS(context, output);\n};\n\n// In an operation between two Dimensions,\n// we default to the first Dimension's unit,\n// so `1px + 2` will yield `3px`.\nDimension.prototype.operate = function(context, op, other) {\n /* jshint noempty:false */\n let value = this._operate(context, op, this.value, other.value);\n\n let unit = this.unit.clone();\n\n if (op === '+' || op === '-') {\n if (unit.numerator.length === 0 && unit.denominator.length === 0) {\n unit = other.unit.clone();\n if (this.unit.backupUnit) {\n unit.backupUnit = this.unit.backupUnit;\n }\n } else if (other.unit.numerator.length === 0 && unit.denominator.length === 0) {\n // do nothing\n } else {\n other = other.convertTo(this.unit.usedUnits());\n\n if (context.strictUnits && other.unit.toString() !== unit.toString()) {\n throw new Error(`Incompatible units. Change the units or use the unit function. ` + \n `Bad units: '${unit.toString()}' and '${other.unit.toString()}'.`);\n }\n\n value = this._operate(context, op, this.value, other.value);\n }\n } else if (op === '*') {\n unit.numerator = unit.numerator.concat(other.unit.numerator).sort();\n unit.denominator = unit.denominator.concat(other.unit.denominator).sort();\n unit.cancel();\n } else if (op === '/') {\n unit.numerator = unit.numerator.concat(other.unit.denominator).sort();\n unit.denominator = unit.denominator.concat(other.unit.numerator).sort();\n unit.cancel();\n }\n return new Dimension(value, unit);\n};\n\nDimension.prototype.compare = function(other) {\n let a;\n let b;\n\n if (!(other instanceof Dimension)) {\n return undefined;\n }\n\n if (this.unit.isEmpty() || other.unit.isEmpty()) {\n a = this;\n b = other;\n } else {\n a = this.unify();\n b = other.unify();\n if (a.unit.compare(b.unit) !== 0) {\n return undefined;\n }\n }\n\n return Node.numericCompare(a.value, b.value);\n};\n\nDimension.prototype.unify = function() {\n return this.convertTo({ length: 'px', duration: 's', angle: 'rad' });\n};\n\nDimension.prototype.convertTo = function(conversions) {\n let value = this.value;\n const unit = this.unit.clone();\n let i;\n let groupName;\n let group;\n let targetUnit;\n let derivedConversions = {};\n let applyUnit;\n\n if (typeof conversions === 'string') {\n for (i in unitConversions) {\n if (unitConversions[i].hasOwnProperty(conversions)) {\n derivedConversions = {};\n derivedConversions[i] = conversions;\n }\n }\n conversions = derivedConversions;\n }\n applyUnit = (atomicUnit, denominator) => {\n /* jshint loopfunc:true */\n if (group.hasOwnProperty(atomicUnit)) {\n if (denominator) {\n value = value / (group[atomicUnit] / group[targetUnit]);\n } else {\n value = value * (group[atomicUnit] / group[targetUnit]);\n }\n\n return targetUnit;\n }\n\n return atomicUnit;\n };\n\n for (groupName in conversions) {\n if (conversions.hasOwnProperty(groupName)) {\n targetUnit = conversions[groupName];\n group = unitConversions[groupName];\n\n unit.map(applyUnit);\n }\n }\n\n unit.cancel();\n\n return new Dimension(value, unit);\n};\n\nDimension.prototype.type = 'Dimension';\nexport default Dimension;\n"]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var node_1 = __importDefault(require("./node"));
|
|
7
|
-
var paren_1 = __importDefault(require("./paren"));
|
|
8
|
-
var combinator_1 = __importDefault(require("./combinator"));
|
|
9
|
-
var Element = function (combinator, value, isVariable, index, currentFileInfo, visibilityInfo) {
|
|
10
|
-
this.combinator = combinator instanceof combinator_1.default ?
|
|
11
|
-
combinator : new combinator_1.default(combinator);
|
|
12
|
-
if (typeof value === 'string') {
|
|
13
|
-
this.value = value.trim();
|
|
14
|
-
}
|
|
15
|
-
else if (value) {
|
|
16
|
-
this.value = value;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
this.value = '';
|
|
20
|
-
}
|
|
21
|
-
this.isVariable = isVariable;
|
|
22
|
-
this._index = index;
|
|
23
|
-
this._fileInfo = currentFileInfo;
|
|
24
|
-
this.copyVisibilityInfo(visibilityInfo);
|
|
25
|
-
this.setParent(this.combinator, this);
|
|
26
|
-
};
|
|
27
|
-
Element.prototype = new node_1.default();
|
|
28
|
-
Element.prototype.accept = function (visitor) {
|
|
29
|
-
var value = this.value;
|
|
30
|
-
this.combinator = visitor.visit(this.combinator);
|
|
31
|
-
if (typeof value === 'object') {
|
|
32
|
-
this.value = visitor.visit(value);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
Element.prototype.eval = function (context) {
|
|
36
|
-
return new Element(this.combinator, this.value.eval ? this.value.eval(context) : this.value, this.isVariable, this.getIndex(), this.fileInfo(), this.visibilityInfo());
|
|
37
|
-
};
|
|
38
|
-
Element.prototype.clone = function () {
|
|
39
|
-
return new Element(this.combinator, this.value, this.isVariable, this.getIndex(), this.fileInfo(), this.visibilityInfo());
|
|
40
|
-
};
|
|
41
|
-
Element.prototype.genCSS = function (context, output) {
|
|
42
|
-
output.add(this.toCSS(context), this.fileInfo(), this.getIndex());
|
|
43
|
-
};
|
|
44
|
-
Element.prototype.toCSS = function (context) {
|
|
45
|
-
if (context === void 0) { context = {}; }
|
|
46
|
-
var value = this.value;
|
|
47
|
-
var firstSelector = context.firstSelector;
|
|
48
|
-
if (value instanceof paren_1.default) {
|
|
49
|
-
// selector in parens should not be affected by outer selector
|
|
50
|
-
// flags (breaks only interpolated selectors - see #1973)
|
|
51
|
-
context.firstSelector = true;
|
|
52
|
-
}
|
|
53
|
-
value = value.toCSS ? value.toCSS(context) : value;
|
|
54
|
-
context.firstSelector = firstSelector;
|
|
55
|
-
if (value === '' && this.combinator.value.charAt(0) === '&') {
|
|
56
|
-
return '';
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
return this.combinator.toCSS(context) + value;
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
Element.prototype.type = 'Element';
|
|
63
|
-
exports.default = Element;
|
|
64
|
-
//# sourceMappingURL=element.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"element.js","sourceRoot":"","sources":["../../../src/less/tree/element.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,kDAA4B;AAC5B,4DAAsC;AAEtC,IAAM,OAAO,GAAG,UAAS,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,cAAc;IAC1F,IAAI,CAAC,UAAU,GAAG,UAAU,YAAY,oBAAU,CAAC,CAAC;QAChD,UAAU,CAAC,CAAC,CAAC,IAAI,oBAAU,CAAC,UAAU,CAAC,CAAC;IAE5C,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;KAC7B;SAAM,IAAI,KAAK,EAAE;QACd,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;KACtB;SAAM;QACH,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;KACnB;IACD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC7B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACpB,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC;IACjC,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACxC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AAC1C,CAAC,CAAC;AAEF,OAAO,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAE/B,OAAO,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO;IACvC,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACzB,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACjD,IAA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AC9D,yDAAyD;QACzD,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC;KAChC;IACD,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;IACnD,OAAO,CAAC,aAAa,GAAG,aAAa,CAAC;IACtC,IAAI,KAAK,KAAK,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;QACzD,OAAO,EAAE,CAAC;KACb;SAAM;QACH,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;KACjD;AACL,CAAC,CAAC;AAEF,OAAO,CAAC,SAAS,CAAC,IAAI,GAAG,SAAS,CAAC;AACnC,kBAAe,OAAO,CAAC","sourcesContent":["import Node from './node';\nimport Paren from './paren';\nimport Combinator from './combinator';\n\nconst Element = function(combinator, value, isVariable, index, currentFileInfo, visibilityInfo) {\n this.combinator = combinator instanceof Combinator ?\n combinator : new Combinator(combinator);\n\n if (typeof value === 'string') {\n this.value = value.trim();\n } else if (value) {\n this.value = value;\n } else {\n this.value = '';\n }\n this.isVariable = isVariable;\n this._index = index;\n this._fileInfo = currentFileInfo;\n this.copyVisibilityInfo(visibilityInfo);\n this.setParent(this.combinator, this);\n};\n\nElement.prototype = new Node();\n\nElement.prototype.accept = function(visitor) {\n const value = this.value;\n this.combinator = visitor.visit(this.combinator);\n if (typeof value === 'object') {\n this.value = visitor.visit(value);\n }\n};\n\nElement.prototype.eval = function(context) {\n return new Element(this.combinator,\n this.value.eval ? this.value.eval(context) : this.value,\n this.isVariable,\n this.getIndex(),\n this.fileInfo(), this.visibilityInfo());\n};\n\nElement.prototype.clone = function() {\n return new Element(this.combinator,\n this.value,\n this.isVariable,\n this.getIndex(),\n this.fileInfo(), this.visibilityInfo());\n};\n\nElement.prototype.genCSS = function(context, output) {\n output.add(this.toCSS(context), this.fileInfo(), this.getIndex());\n};\n\nElement.prototype.toCSS = function(context = {}) {\n let value = this.value;\n const firstSelector = context.firstSelector;\n if (value instanceof Paren) {\n // selector in parens should not be affected by outer selector\n // flags (breaks only interpolated selectors - see #1973)\n context.firstSelector = true;\n }\n value = value.toCSS ? value.toCSS(context) : value;\n context.firstSelector = firstSelector;\n if (value === '' && this.combinator.value.charAt(0) === '&') {\n return '';\n } else {\n return this.combinator.toCSS(context) + value;\n }\n};\n\nElement.prototype.type = 'Element';\nexport default Element;\n"]}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
var node_1 = __importDefault(require("./node"));
|
|
26
|
-
var paren_1 = __importDefault(require("./paren"));
|
|
27
|
-
var comment_1 = __importDefault(require("./comment"));
|
|
28
|
-
var dimension_1 = __importDefault(require("./dimension"));
|
|
29
|
-
var Constants = __importStar(require("../constants"));
|
|
30
|
-
var MATH = Constants.Math;
|
|
31
|
-
var Expression = function (value, noSpacing) {
|
|
32
|
-
this.value = value;
|
|
33
|
-
this.noSpacing = noSpacing;
|
|
34
|
-
if (!value) {
|
|
35
|
-
throw new Error('Expression requires an array parameter');
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Expression.prototype = new node_1.default();
|
|
39
|
-
Expression.prototype.accept = function (visitor) {
|
|
40
|
-
this.value = visitor.visitArray(this.value);
|
|
41
|
-
};
|
|
42
|
-
Expression.prototype.eval = function (context) {
|
|
43
|
-
var returnValue;
|
|
44
|
-
var mathOn = context.isMathOn();
|
|
45
|
-
var inParenthesis = this.parens &&
|
|
46
|
-
(context.math !== MATH.STRICT_LEGACY || !this.parensInOp);
|
|
47
|
-
var doubleParen = false;
|
|
48
|
-
if (inParenthesis) {
|
|
49
|
-
context.inParenthesis();
|
|
50
|
-
}
|
|
51
|
-
if (this.value.length > 1) {
|
|
52
|
-
returnValue = new Expression(this.value.map(function (e) {
|
|
53
|
-
if (!e.eval) {
|
|
54
|
-
return e;
|
|
55
|
-
}
|
|
56
|
-
return e.eval(context);
|
|
57
|
-
}), this.noSpacing);
|
|
58
|
-
}
|
|
59
|
-
else if (this.value.length === 1) {
|
|
60
|
-
if (this.value[0].parens && !this.value[0].parensInOp && !context.inCalc) {
|
|
61
|
-
doubleParen = true;
|
|
62
|
-
}
|
|
63
|
-
returnValue = this.value[0].eval(context);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
returnValue = this;
|
|
67
|
-
}
|
|
68
|
-
if (inParenthesis) {
|
|
69
|
-
context.outOfParenthesis();
|
|
70
|
-
}
|
|
71
|
-
if (this.parens && this.parensInOp && !mathOn && !doubleParen
|
|
72
|
-
&& (!(returnValue instanceof dimension_1.default))) {
|
|
73
|
-
returnValue = new paren_1.default(returnValue);
|
|
74
|
-
}
|
|
75
|
-
return returnValue;
|
|
76
|
-
};
|
|
77
|
-
Expression.prototype.genCSS = function (context, output) {
|
|
78
|
-
for (var i = 0; i < this.value.length; i++) {
|
|
79
|
-
this.value[i].genCSS(context, output);
|
|
80
|
-
if (!this.noSpacing && i + 1 < this.value.length) {
|
|
81
|
-
output.add(' ');
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
Expression.prototype.throwAwayComments = function () {
|
|
86
|
-
this.value = this.value.filter(function (v) { return !(v instanceof comment_1.default); });
|
|
87
|
-
};
|
|
88
|
-
Expression.prototype.type = 'Expression';
|
|
89
|
-
exports.default = Expression;
|
|
90
|
-
//# sourceMappingURL=expression.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"expression.js","sourceRoot":"","sources":["../../../src/less/tree/expression.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA0B;AAC1B,kDAA4B;AAC5B,sDAAgC;AAChC,0DAAoC;AACpC,sDAA0C;AAC1C,IAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;AAE5B,IAAM,UAAU,GAAG,UAAS,KAAK,EAAE,SAAS;IACxC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,KAAK,EAAE;QACR,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;KAC7D;AACL,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAElC,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO;IAC1C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,UAAU,CA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WAAW;WACtD,CAAC,CAAC,CAAC,WAAW,YAAY,mBAAS,CAAC,CAAC,EAAE;QAC1C,WAAW,GAAG,IAAI,eAAK,CAAC,WAAW,CAAC,CAAC;KACxC;IACD,OAAO,WAAW,CAAC;AACvB,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO,EAAE,MAAM;IAClD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACxC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;YAC9C,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACnB;KACJ;AACL,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,CAAC,iBAAiB,GAAG;IACrC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,UAAA,CAAC,IAAI,OAAA,CAAC,CAAC,CAAC,YAAY,iBAAO,CAAC,EAAvB,CAAuB,CAAC,CAAC;AACjE,CAAC,CAAC;AAEF,UAAU,CAAC,SAAS,CAAC,IAAI,GAAG,YAAY,CAAC;AACzC,kBAAe,UAAU,CAAC","sourcesContent":["import Node from './node';\nimport Paren from './paren';\nimport Comment from './comment';\nimport Dimension from './dimension';\nimport * as Constants from '../constants';\nconst MATH = Constants.Math;\n\nconst Expression = function(value, noSpacing) {\n this.value = value;\n this.noSpacing = noSpacing;\n if (!value) {\n throw new Error('Expression requires an array parameter');\n }\n};\n\nExpression.prototype = new Node();\n\nExpression.prototype.accept = function(visitor) {\n this.value = visitor.visitArray(this.value);\n};\n\nExpression.prototype.eval = function(context) {\n let returnValue;\n const mathOn = context.isMathOn();\n\n const inParenthesis = this.parens && \n (context.math !== MATH.STRICT_LEGACY || !this.parensInOp);\n\n let doubleParen = false;\n if (inParenthesis) {\n context.inParenthesis();\n }\n if (this.value.length > 1) {\n returnValue = new Expression(this.value.map(e => {\n if (!e.eval) {\n return e;\n }\n return e.eval(context);\n }), this.noSpacing);\n } else if (this.value.length === 1) {\n if (this.value[0].parens && !this.value[0].parensInOp && !context.inCalc) {\n doubleParen = true;\n }\n returnValue = this.value[0].eval(context);\n } else {\n returnValue = this;\n }\n if (inParenthesis) {\n context.outOfParenthesis();\n }\n if (this.parens && this.parensInOp && !mathOn && !doubleParen \n && (!(returnValue instanceof Dimension))) {\n returnValue = new Paren(returnValue);\n }\n return returnValue;\n};\n\nExpression.prototype.genCSS = function(context, output) {\n for (let i = 0; i < this.value.length; i++) {\n this.value[i].genCSS(context, output);\n if (!this.noSpacing && i + 1 < this.value.length) {\n output.add(' ');\n }\n }\n};\n\nExpression.prototype.throwAwayComments = function() {\n this.value = this.value.filter(v => !(v instanceof Comment));\n};\n\nExpression.prototype.type = 'Expression';\nexport default Expression;\n"]}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var node_1 = __importDefault(require("./node"));
|
|
7
|
-
var selector_1 = __importDefault(require("./selector"));
|
|
8
|
-
var Extend = function (selector, option, index, currentFileInfo, visibilityInfo) {
|
|
9
|
-
this.selector = selector;
|
|
10
|
-
this.option = option;
|
|
11
|
-
this.object_id = Extend.next_id++;
|
|
12
|
-
this.parent_ids = [this.object_id];
|
|
13
|
-
this._index = index;
|
|
14
|
-
this._fileInfo = currentFileInfo;
|
|
15
|
-
this.copyVisibilityInfo(visibilityInfo);
|
|
16
|
-
this.allowRoot = true;
|
|
17
|
-
switch (option) {
|
|
18
|
-
case 'all':
|
|
19
|
-
this.allowBefore = true;
|
|
20
|
-
this.allowAfter = true;
|
|
21
|
-
break;
|
|
22
|
-
default:
|
|
23
|
-
this.allowBefore = false;
|
|
24
|
-
this.allowAfter = false;
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
this.setParent(this.selector, this);
|
|
28
|
-
};
|
|
29
|
-
Extend.prototype = new node_1.default();
|
|
30
|
-
Extend.prototype.accept = function (visitor) {
|
|
31
|
-
this.selector = visitor.visit(this.selector);
|
|
32
|
-
};
|
|
33
|
-
Extend.prototype.eval = function (context) {
|
|
34
|
-
return new Extend(this.selector.eval(context), this.option, this.getIndex(), this.fileInfo(), this.visibilityInfo());
|
|
35
|
-
};
|
|
36
|
-
Extend.prototype.clone = function (context) {
|
|
37
|
-
return new Extend(this.selector, this.option, this.getIndex(), this.fileInfo(), this.visibilityInfo());
|
|
38
|
-
};
|
|
39
|
-
// it concatenates (joins) all selectors in selector array
|
|
40
|
-
Extend.prototype.findSelfSelectors = function (selectors) {
|
|
41
|
-
var selfElements = [];
|
|
42
|
-
var i;
|
|
43
|
-
var selectorElements;
|
|
44
|
-
for (i = 0; i < selectors.length; i++) {
|
|
45
|
-
selectorElements = selectors[i].elements;
|
|
46
|
-
// duplicate the logic in genCSS function inside the selector node.
|
|
47
|
-
// future TODO - move both logics into the selector joiner visitor
|
|
48
|
-
if (i > 0 && selectorElements.length && selectorElements[0].combinator.value === '') {
|
|
49
|
-
selectorElements[0].combinator.value = ' ';
|
|
50
|
-
}
|
|
51
|
-
selfElements = selfElements.concat(selectors[i].elements);
|
|
52
|
-
}
|
|
53
|
-
this.selfSelectors = [new selector_1.default(selfElements)];
|
|
54
|
-
this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo());
|
|
55
|
-
};
|
|
56
|
-
/**
|
|
57
|
-
* Used with the extend visitor
|
|
58
|
-
*/
|
|
59
|
-
Extend.next_id = 0;
|
|
60
|
-
Extend.prototype.type = 'Extend';
|
|
61
|
-
exports.default = Extend;
|
|
62
|
-
//# sourceMappingURL=extend.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extend.js","sourceRoot":"","sources":["../../../src/less/tree/extend.js"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAC1B,wDAAkC;AAElC,IAAM,MAAM,GAAG,UAAS,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,cAAc;IAC5E,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACrB,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO,EAAE,CAAC;IAClC,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACpB,IAAI,CAAC,SAAS,GAAG,eAAe,CAAC;IACjC,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,CAAC;IACxC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IAEtB,QAAQ,MAAM,EAAE;QACZ,KAAK,KAAK;YACN,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;YACvB,MAAM;QACV;YACI,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YACzB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;YACxB,MAAM;KACb;IACD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AACxC,CAAC,CAAC;AAEF,MAAM,CAAC,SAAS,GAAG,IAAI,cAAI,EAAE,CAAC;AAE9B,MAAM,CAAC,SAAS,CAAC,MAAM,GAAG,UAAS,OAAO;IACtC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAA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C,CAAC,CAAC;IAClD,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,GAAG,CAAC,CAAC;AACnB,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,QAAQ,CAAC;AACjC,kBAAe,MAAM,CAAC","sourcesContent":["import Node from './node';\nimport Selector from './selector';\n\nconst Extend = function(selector, option, index, currentFileInfo, visibilityInfo) {\n this.selector = selector;\n this.option = option;\n this.object_id = Extend.next_id++;\n this.parent_ids = [this.object_id];\n this._index = index;\n this._fileInfo = currentFileInfo;\n this.copyVisibilityInfo(visibilityInfo);\n this.allowRoot = true;\n\n switch (option) {\n case 'all':\n this.allowBefore = true;\n this.allowAfter = true;\n break;\n default:\n this.allowBefore = false;\n this.allowAfter = false;\n break;\n }\n this.setParent(this.selector, this);\n};\n\nExtend.prototype = new Node();\n\nExtend.prototype.accept = function(visitor) {\n this.selector = visitor.visit(this.selector);\n};\n\nExtend.prototype.eval = function(context) {\n return new Extend(this.selector.eval(context), this.option, this.getIndex(), this.fileInfo(), this.visibilityInfo());\n};\n\nExtend.prototype.clone = function(context) {\n return new Extend(this.selector, this.option, this.getIndex(), this.fileInfo(), this.visibilityInfo());\n};\n\n// it concatenates (joins) all selectors in selector array\nExtend.prototype.findSelfSelectors = function(selectors) {\n let selfElements = [];\n let i;\n let selectorElements;\n\n for (i = 0; i < selectors.length; i++) {\n selectorElements = selectors[i].elements;\n // duplicate the logic in genCSS function inside the selector node.\n // future TODO - move both logics into the selector joiner visitor\n if (i > 0 && selectorElements.length && selectorElements[0].combinator.value === '') {\n selectorElements[0].combinator.value = ' ';\n }\n selfElements = selfElements.concat(selectors[i].elements);\n }\n\n this.selfSelectors = [new Selector(selfElements)];\n this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo());\n};\n\n/**\n * Used with the extend visitor\n */\nExtend.next_id = 0;\nExtend.prototype.type = 'Extend';\nexport default Extend;\n"]}
|